我正在尝试使用苹果手表扬声器播放声音
我收到这些错误消息
'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
}
非常感谢任何帮助。