如何播放 AES-128 加密的 .m3u8 文件

问题描述 投票:0回答:1

我正在尝试开发一个自定义接收器应用程序。我用了; https://github.com/googlecast/CastMediaPlayerStreamingDRM

我的服务器平台是IIS 7.5,满足CORS要求。 在.m3u8文件中,有两项,URI和初始向量。

#EXT-X-KEY:METHOD=AES-128,URI="http://MY_SERVER_IP/FILE_NAME.key",IV=0x799a4490f82203e21ea413b1bf66bbf8

我将许可证服务器 URL 放在自定义接收器上,但它不起作用。 我收到的消息是媒体播放器状态:“下溢: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 媒体播放器播放时,它可以工作。

encryption aes http-live-streaming chromecast m3u8
1个回答
0
投票

许可证文件(密钥)必须通过 https 提供。

© www.soinside.com 2019 - 2024. All rights reserved.