Enable 480p in ABR (test - Stream Monitor reports SYNC=0)
This commit is contained in:
parent
cb7e78eedd
commit
d33d772b2f
@ -675,17 +675,8 @@
|
|||||||
hls.loadSource(HLS_URL);
|
hls.loadSource(HLS_URL);
|
||||||
hls.attachMedia(video);
|
hls.attachMedia(video);
|
||||||
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||||
// Disable 480p variant (it's desynchronized from 1080p/720p on Rok's encoder)
|
// ABR enabled across ALL variants (1080p / 720p / 480p)
|
||||||
// ABR will only switch between 1080p and 720p, both of which are in sync.
|
// Player will auto-pick best quality based on bandwidth.
|
||||||
try {
|
|
||||||
if (hls.levels && hls.levels.length) {
|
|
||||||
hls.levels.forEach((lvl, idx) => {
|
|
||||||
if (lvl.height && lvl.height <= 480) {
|
|
||||||
lvl.enabled = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
hideMsg();
|
hideMsg();
|
||||||
video.play().catch(() => setTimeout(() => video.play().catch(() => {}), 200));
|
video.play().catch(() => setTimeout(() => video.play().catch(() => {}), 200));
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user