首页 > 解决方案 > 我无法在任何 linux vm 机器上播放受 DRM 保护的破折号视频,但相同的代码正在其他共享托管 apache 服务器上运行

问题描述

注意:视频 url 使用许可证密钥和所需数据进行签名。相同的代码在 xampp apache 服务器和共享主机中运行,但在 ec2、本地 ubuntu 等 linux vm 机器上无法运行。

控制台错误是:

IndexedDB.install
input_event.js:21 InputEvent.install
mathround.js:20 mathRound.install
mediasource.js:22 MediaSource.install
mediasource.js:76 Using native MSE as-is.
video_play_promise.js:21 VideoPlayPromise.install
vttcue.js:22 Using native VTTCue.
index.js:42 EmeEncryptionSchemePolyfill: EME not found
index.js:251 McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support.
patchedmediakeys_nop.js:31 EME not available.
ams.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
microsoft.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
player.js:567 The walker saw an error:
(anonymous) @ player.js:567
player.js:569 Error Code: 6001
(anonymous) @ player.js:569

完整的html代码为:

https://github.com/Azure-Samples/media-services-3rdparty-player-samples/blob/master/src/shaka/index.html

共享托管 apache 服务器上没有出现相同的控制台

标签: apachevideo.jsdrmdash.jsshaka

解决方案


我发现了错误,这是因为服务器上的 ssl 配置。要使用受 DRM 保护的内容,我们需要在实时服务器上使用安全连接。


推荐阅读