在MacOS上使用AVPlayer错误连接到名为rtcreportingd的服务

时间:2019-05-19 19:13:02

标签: macos avplayer avplayerview

我有一个非常简单的MacOS应用程序,试图在MacOS上使用AVPlayerView / AVPlayer从远程URL播放小mp4。

我经常收到有关与服务com.apple.rtcreportingd的连接的错误。 这是我收到的错误的完整日志:

2019-05-19 12:06:47.286932-0700 MyApp[5849:39995] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-05-19 12:06:47.287081-0700 MyApp[5849:39995] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-05-19 12:06:47.392044-0700 MyApp[5849:40033] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x10141c0a0] get output frames failed, state 8196
2019-05-19 12:06:47.392105-0700 MyApp[5849:40033] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x10141c0a0] get output frames failed, state 8196
2019-05-19 12:06:47.392269-0700 MyApp[5849:40033] TIC Read Status [2:0x0]: 1:57
2019-05-19 12:06:47.392285-0700 MyApp[5849:40033] TIC Read Status [2:0x0]: 1:57
2019-05-19 12:06:47.622099-0700 MyApp[5849:39997] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-05-19 12:06:47.639382-0700 MyApp[5849:39997] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-05-19 12:06:48.123992-0700 MyApp[5849:40031] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-05-19 12:06:48.129544-0700 MyApp[5849:40029] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}

播放似乎正常,但我仍然想知道如何使其停止。它隐藏了我正在打印的任何其他调试消息。

设置AVPlayer的代码非常简单。我有一个NSCollectionViewItem里面有一个AVPlayerView。 然后,我使用如下方法在视图上设置.player属性:

if let previewUrl = URL(string: "https://url-to-an-mp4") {
    playerView?.player = AVPlayer(url: previewUrl)
}

我在Google上进行了广泛的搜索,关于rtcreportingd的信息并不多。

0 个答案:

没有答案