apache - 我无法在任何 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代码为:
共享托管 apache 服务器上没有出现相同的控制台
解决方案
我发现了错误,这是因为服务器上的 ssl 配置。要使用受 DRM 保护的内容,我们需要在实时服务器上使用安全连接。
推荐阅读
- python - 我收到此错误:Typeerror 列表索引必须是整数或切片,而不是 str。不和谐.py
- javascript - JS/React Coinbase OAuth2 访问令牌“service_unavailable”错误
- location - 如何在没有 MapBoxMap 实例的情况下在 MapBox 中跟踪设备位置
- json - Powershell Invoke-RestMethod:远程服务器返回错误:(413)请求实体太大
- c# - C# JsonConverter 将 null 更改为 0
- python - 在 pySpark 数据框图中设置 x 和 y 索引
- math - 如何从 3D 空间中的距离找到坐标?
- php - 函数内部 API 调用的返回和错误处理
- javascript - 如何折叠分层表中的所有子行?
- reactjs - 在 React 中单击自动对焦输入字段的任何位置