presentMediaPlayerController(with:options:completion :)'已明确标记为不可用

时间:2016-12-27 20:05:23

标签: objective-c swift watchkit apple-watch watch-os

我正在尝试使用苹果手表扬声器播放声音

我收到这些错误消息

'presentMediaPlayerController(with:options:completion:)' is unavailable

还:

WatchKit.WKInterfaceController:28:15: note: 'presentMediaPlayerController(with:options:completion:)' has been explicitly marked unavailable here

以下是生成错误的代码:

    presentMediaPlayerController(with: soundURL, options: ["WKMediaPlayerControllerOptionsAutoplayKey":true]) { (a, b, c) in

    }

非常感谢任何帮助。

0 个答案:

没有答案