报错[Stream]codec not supported:video/mp4;codec=avc1.640028和Uncaught TypeError: null has no properties

今天将原本在本地windows上利用chrome和edge浏览器完成测试的视频播放器移到linux系统上的浏览器使用却报了如下错误。

[155][CapabilitiesFilter][Stream]codec not supported: video/mp4;codec=“avc1.640028”; width="1440"
Uncaught TypeError: null has no properties.
Uncaught TypeError: undefined has no properties.

后来在github上某项目问题区发现了这样的评论[1]

The decoding capabilities depend on the underlying platform. We are using the codec strings from the MPD to check if the browser supports a certain codec. For instance HEVC will not work in a Chrome browser.

解码能力取决于底层平台。我们使用MPD中的编解码器字符串来检查浏览器是否支持某个编解码器。例如,HEVC在Chrome浏览器中无法工作。
结果已经比较明显了。
我在本地利用chrome和edge浏览器运行时是可以的,但linux系统上运行该播放器的是firefox。
由于我运行该播放器只是为了测试某些功能而不是要实际部署,因此只要在linux上下载安装edge或者chrome浏览器,用这两个浏览器进行测试即可。
linux上edge浏览器的下载安装教程可见:ubuntu上安装edge

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值