google chromecast 中的 DeviceControllerApplicationConnectionFailed

DeviceControllerApplicationConnectionFailed in google chromecast

我正在将 Google Chromecast 集成到我的视频播放器应用中。我已经提到了这个 link:

https://developers.google.com/cast/docs/ios_sender_integrate

它显示 Chromecast 设备,但当我尝试连接该设备时,它 returns 出现错误。这是错误日志:

 -[GCKEventLogger logDeviceController:sessionID:application:connectionFailedWithError:]  LOG EVENT: DeviceControllerApplicationConnectionFailed device=<0x1311cc710:GCKDevice> [com.google.cast.CastDevice] 'Chrome Cast IBL' 192.168.1.185:8009 (e8fc847534f5fcb8e8c7190dc05458b6), sessionID=1272110429, appID=F1D64732, error=2

知道是什么原因造成的吗?提前致谢。

如果您按照 documentation properly but the error still occurs, try the official troubleshooter. Also make sure that your device has a supported operating system to install the Google Cast extension. You can check on this thread 了解更多可以帮助您的解决方法。

出现此类问题的原因是互联网连接速度慢,然后连接 Chromecast 需要更多时间,因此由于超时而无法连接。所以你需要重新连接(停止投射并再次连接)然后它很容易与 chromecast 连接。