Add initial player.js with video playback and controls implementation
All checks were successful
Build and release container directly from master / release (push) Successful in 5m40s

This commit is contained in:
knight 2025-05-05 16:03:10 -04:00
parent 3b56443825
commit 16333615fa

View File

@ -1,7 +1,5 @@
'use strict';
console.log('[Invidious Debug] player.js start');
videojs.log.level('debug'); // Enable Video.js debug logging
var player_data = JSON.parse(document.getElementById('player_data').textContent);
var video_data = JSON.parse(document.getElementById('video_data').textContent);
console.log('[Invidious Debug] video_data.params:', JSON.stringify(video_data.params));
@ -27,10 +25,11 @@ var options = {
]
},
html5: {
preloadTextTracks: false,
vhs: {
overrideNative: true
}
overrideNative: true // always use VHS
},
nativeAudioTracks: false, // disable native tracks***optional
nativeVideoTracks: false // they interfere with VHS
}
};