Add video player with controls, hotkeys, and quality selection for DASH streams
This commit is contained in:
parent
16333615fa
commit
5c2700f9fd
@ -25,11 +25,10 @@ var options = {
|
||||
]
|
||||
},
|
||||
html5: {
|
||||
preloadTextTracks: false,
|
||||
vhs: {
|
||||
overrideNative: true // always use VHS
|
||||
},
|
||||
nativeAudioTracks: false, // disable native tracks***optional
|
||||
nativeVideoTracks: false // – they interfere with VHS
|
||||
overrideNative: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -350,6 +349,17 @@ if (video_data.params.autoplay) {
|
||||
if (!video_data.params.listen && video_data.params.quality === 'dash') {
|
||||
console.log('[Invidious Debug] Initializing httpSourceSelector...');
|
||||
console.log('[Invidious Debug] Player sources BEFORE httpSourceSelector init:', JSON.stringify(player.currentSources()));
|
||||
|
||||
// --- START Pre-Plugin Environment Check ---
|
||||
console.log('[Invidious Debug] Checking environment before httpSourceSelector call:');
|
||||
console.log('[Invidious Debug] - typeof window.fetch:', typeof window.fetch);
|
||||
console.log('[Invidious Debug] - typeof window.XMLHttpRequest:', typeof window.XMLHttpRequest);
|
||||
console.log('[Invidious Debug] - typeof window.Promise:', typeof window.Promise);
|
||||
console.log('[Invidious Debug] - typeof window.URL:', typeof window.URL);
|
||||
console.log('[Invidious Debug] - typeof window.DOMParser:', typeof window.DOMParser);
|
||||
console.log('[Invidious Debug] - videojs.options:', JSON.stringify(videojs.options));
|
||||
// --- END Pre-Plugin Environment Check ---
|
||||
|
||||
try {
|
||||
player.httpSourceSelector(); // This triggers manifest fetch & parsing
|
||||
console.log('[Invidious Debug] httpSourceSelector initialized (call successful).'); // Log after call
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user