testing audio-only version

this will avoid triggering the error
This commit is contained in:
Brooke Vibber 2021-10-27 13:38:49 -07:00
commit 949ec8e2a8
2 changed files with 11 additions and 3 deletions

View file

@ -145,6 +145,8 @@
overrideNative: true,
useDevicePixelRatio: true
};
playerConfig.html5.featuresNativeVideoTracks = true;
playerConfig.html5.featuresNativeAudioTracks = true;
console.log('will do mse');
} else {
console.log('wont do mse');
@ -181,6 +183,7 @@
hls1.classList.add('vjs-default-skin');
var vjs1 = videojs(hls1, playerConfig);
/*
vjs1.on('error', function failover() {
console.log('got error');
var error = vjs1.error();
@ -198,6 +201,7 @@
}
vjs1.off('error', failover);
});
*/
// this fails on Chrome with a blob issue on the HLS player :D
//vjs1.load();