【发布时间】:2019-11-23 05:50:53
【问题描述】:
我正在使用此配置加载 videojs:
const VIDEO_JS_CONFIG = {
src: 'http://mymanifest.com/manifest.m3u8',
type: 'application/x-mpegURL',
controls: true,
autoplay: true,
playsinline: true,
preload: 'auto',
fullscreen: true,
liveui: true,
html5: {
hls: {
overrideNative: true
}
}
controlBar: {
children: {
playToggle: true,
progressControl: true,
customControlSpacer: true,
volumePanel: true,
fullscreenToggle: true
}
},
};
当我查看刚开始的 RTMP 流时,我可以看到质量在最高和最低分辨率之间快速闪烁。我看到了这个问题:video.js Chrome and FF Quality problems 并尝试了 overrideNative 并且仍然看到相同的行为。
当我们尝试使用https://github.com/videojs/videojs-contrib-quality-levels 时,选择器可以正常工作,并且选择质量会很好。然而auto 的行为又回到了闪烁状态。
【问题讨论】:
标签: javascript html5-video video.js