简体   繁体   English

Chromecast设备无法播放iOS应用中的HLS视频

[英]Chromecast device not playing HLS Video from iOS Application

I've registered my app and trying to cast a hls video from ios app to TV. 我已经注册了我的应用,并尝试将hls视频从ios应用投射到电视。 It works with other formats like mp4. 它可以与mp4等其他格式一起使用。 In the code I've mentioned the streamtype as GCKMediaStreamTypeLive and contentType as @"application/x-mpegURL". 在代码中,我提到的流类型为GCKMediaStreamTypeLive,内容类型为@“ application / x-mpegURL”。 The iOS code used is referenced from the sample app "HelloVideoGoogleCast". 从示例应用程序“ HelloVideoGoogleCast”引用了所使用的iOS代码。 And I've deployed the receiver's html file from the following sample, https://github.com/googlecast/cast-custom-receiver . 我已经从以下示例https://github.com/googlecast/cast-custom-receiver部署了接收者的html文件。

Am I missing something ? 我想念什么吗? Is there any sample app available for playing HLS video on ChromeCast device ? Why is it not playing the hls video type ? 是否有任何可用的示例应用程序可在ChromeCast设备上播放HLS视频?为什么它不播放hls视频类型?

I received the "Access-Control-Allow-Origin" header error even when CORS headers was present and set up correctly. 即使存在CORS标头并正确设置,我也收到“ Access-Control-Allow-Origin”标头错误。 Turned out a simple reboot of the Chromecast device from the Chromecast iOS app fixed the issue. 事实证明,从Chromecast iOS应用简单重启Chromecast设备可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM