Add video player with controls, hotkeys, and quality selection for DASH streams
This commit is contained in:
@@ -25,11 +25,10 @@ var options = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
html5: {
|
html5: {
|
||||||
|
preloadTextTracks: false,
|
||||||
vhs: {
|
vhs: {
|
||||||
overrideNative: true // always use VHS
|
overrideNative: true
|
||||||
},
|
}
|
||||||
nativeAudioTracks: false, // disable native tracks***optional
|
|
||||||
nativeVideoTracks: false // – they interfere with VHS
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -350,6 +349,17 @@ if (video_data.params.autoplay) {
|
|||||||
if (!video_data.params.listen && video_data.params.quality === 'dash') {
|
if (!video_data.params.listen && video_data.params.quality === 'dash') {
|
||||||
console.log('[Invidious Debug] Initializing httpSourceSelector...');
|
console.log('[Invidious Debug] Initializing httpSourceSelector...');
|
||||||
console.log('[Invidious Debug] Player sources BEFORE httpSourceSelector init:', JSON.stringify(player.currentSources()));
|
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 {
|
try {
|
||||||
player.httpSourceSelector(); // This triggers manifest fetch & parsing
|
player.httpSourceSelector(); // This triggers manifest fetch & parsing
|
||||||
console.log('[Invidious Debug] httpSourceSelector initialized (call successful).'); // Log after call
|
console.log('[Invidious Debug] httpSourceSelector initialized (call successful).'); // Log after call
|
||||||
|
|||||||
Reference in New Issue
Block a user