我正在使用以下配置加载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
的行为又回到了闪烁状态。