我正在尝试开发自定义接收器应用程序。我用了; https://github.com/googlecast/CastMediaPlayerStreamingDRM
我的服务器平台是IIS 7.5,并且满足CORS要求。 在.m3u8文件中,有两个项目,URI&初始向量。
我将许可证服务器URL放在自定义接收器上,但它不起作用。 我得到的消息是媒体播放器状态:“underflow:true”,媒体元素状态:“停滞不前”
我该如何解决? 感谢您阅读我的问题。
更新#1
######### MEDIA ELEMENT LOAD START mpl.js:58
[ 38.556s] [goog.net.XhrIo] Opening Xhr [GET http://serverIP/.m3u8 -1] media_player.js:24
[ 38.572s] [goog.net.XhrIo] Will abort after 30000ms if incomplete, xhr2 false [GET http://serverIP.m3u8 -1] media_player.js:24
[ 38.578s] [goog.net.XhrIo] Sending request [GET http://serverIP.m3u8 -1] media_player.js:24
[ 38.619s] [goog.net.XhrIo] Request complete [GET http://serverIP.m3u8 200] media_player.js:24
[ 38.695s] [cast.player.core.QualityManager] 0: from undefined to 1308128 media_player.js:24
[ 38.701s] [cast.player.hls.Playlist] update: http://serverIP.m3u8 media_player.js:24
[ 38.709s] [goog.net.XhrIo] Opening Xhr [GET http://serverIP.m3u8 -1] media_player.js:24
[ 38.719s] [goog.net.XhrIo] Will abort after 30000ms if incomplete, xhr2 false [GET http://serverIP.m3u8 -1] media_player.js:24
[ 38.725s] [goog.net.XhrIo] Sending request [GET http://serverIP.m3u8 -1] media_player.js:24
[ 38.748s] [goog.net.XhrIo] Request complete [GET http://serverIP.m3u8 200] media_player.js:24
[ 38.776s] [cast.player.hls.Parser] unexpected EXT-X-KEY: state 3 media_player.js:24
### HOST ERROR - Fatal Error: code = 0 mpl.js:635
[ 38.785s] [cast.player.api.Player] unload media_player.js:24
######### MEDIA ELEMENT STALLED
当我尝试使用VLC媒体播放器播放时,它可以正常工作。
答案 0 :(得分:0)
许可证文件(密钥)必须通过https提供。