在Cast Receiver中加载HLS播放列表时出错 [英] Error loading HLS playlist in Cast Receiver
问题描述
我正在使用来自示例GitHub项目的示例自定义接收器,并遇到了一个
I am using the example custom receiver from this sample GitHub project and running into an error while loading an m3u8 master playlist.
根据传递给 onMediaError $ c的错误,我无法确定问题是什么提出我的加载请求后,$ c>:
code: "session_error"
description: "LOAD_FAILED"
details: null
我创建了一个我的接收者输出的完整日志的依据,因为内容受保护,所以只用 mycompany.com替换了我的域。
I have created a gist of the full log output from my receiver, just replacing my domain with "mycompany.com" since the content is protected.
推荐答案
我查看了您的日志,看来您的hls可能返回了错误的标头?
I looked at your log and it looks like your hls might be returning bad headers?
I建议使用( https://github.com/googlecast/cast-sup我写来测试HLS的端口媒体服务器)。该项目的自述文件中有指向某些媒体(HLS,PlayReady和MPEG-DASH)的链接-尝试运行示例自定义接收器 https://github.com/googlecast/cast-custom-receiver (我也写过)针对使用媒体示例的支持媒体服务器。然后,从服务器中获取HLS内容并在支持媒体服务器中运行它,以确保它与标题(CORS)无关。
I would recommend using (https://github.com/googlecast/cast-support-media-server) which I wrote to test HLS. There is a link in the readme of that project to some media (HLS, PlayReady, MPEG-DASH) - try running the sample custom receiver https://github.com/googlecast/cast-custom-receiver (I wrote that too) against the support media server using the media samples. Then take your HLS content from your server and run it in the support media server to make sure it's not something to do with your headers (CORS).
从日志输出中,我推测服务器为媒体提供的元数据存在问题。
From the log output I would surmise there is an issue with the metadata your server is providing for the media.
这篇关于在Cast Receiver中加载HLS播放列表时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!