Enable use of hls.js when LG WebOS 4 or newer is used.

This commit is contained in:
Timi Tuohenmaa
2025-03-29 13:17:24 +02:00
committed by Bill Thornton
parent 40d98ab6e1
commit 85fc9de45f
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -137,6 +137,14 @@ function supportsEac3(videoTestElement) {
}
function supportsAc3InHls(videoTestElement) {
// We use hls.js on WebOS 4 and newer and hls.js uses Media Sources Extensions (MSE) API.
// On WebOS MSE does support AC-3 and EAC-3 only on audio mp4 file but not on audiovideo mp4
// therefore until audio and video is not separated when generating stream and m3u8 this should
// return false.
if (browser.web0sVersion >= 4) {
return false;
}
if (browser.tizen || browser.web0s) {
return true;
}