0

为啥这个网站的视频用安卓 Chrome 打开 100%卡死

 1 year ago
source link: https://www.v2ex.com/t/925014
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

为啥这个网站的视频用安卓 Chrome 打开 100%卡死

  maggch97 · 8 小时 19 分钟前 · 892 次点击
https://yhdm.at/vod-play/20234513/ep3.html

用安卓 Chrome 打开,播放,随便拖几下进度,画面就会卡死,但是声音继续播放

大家的设备上能复现出类似问题嘛? 这个问题只有安卓 Chrome 上会发生, Mac,Windows,iOS 上面都一切正常

我测了其他的几个安卓浏览器
Brave: 和 Chrome 一样卡死
Kiwi: 进度条来回拖放多几次,画面卡死
Edge: 拖了好多次,播放都正常


试着在 chrome://flags 关闭下面的几个开关, 照旧
Android Surfacecontrol
Video hardware decode

这个网站还有一个奇怪的地方是, 在安卓上, video 的 readystate 永远是 4(加载完毕). 但是其他平台都是正常的

迫于超出能力范围, 有没有大哥能解释这个问题?或者提供一些思路

第 1 条附言  ·  1 小时 28 分钟前

排查结果:
重新看了能复现的网页的代码, 发现安卓 Chrome 和桌面端的区别是, 安卓的 video.canPlayType('application/vnd.apple.mpegurl') 是 true, 但是 PC 端是 false. 也就是安卓的 html video player 能直接播放 m3u8 文件

测了一下 hls 在任何平台都能正常播放那个 m3u8. 所以问题是出在 安卓 Chrome 浏览器的 m3u8 播放那一块逻辑.

无语...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK