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
All checks were successful
Build and release container directly from master / release (push) Successful in 5m40s
This commit is contained in:
parent
3b56443825
commit
16333615fa
@ -1,7 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
console.log('[Invidious Debug] player.js start');
|
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 player_data = JSON.parse(document.getElementById('player_data').textContent);
|
||||||
var video_data = JSON.parse(document.getElementById('video_data').textContent);
|
var video_data = JSON.parse(document.getElementById('video_data').textContent);
|
||||||
console.log('[Invidious Debug] video_data.params:', JSON.stringify(video_data.params));
|
console.log('[Invidious Debug] video_data.params:', JSON.stringify(video_data.params));
|
||||||
@ -27,10 +25,11 @@ var options = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
html5: {
|
html5: {
|
||||||
preloadTextTracks: false,
|
|
||||||
vhs: {
|
vhs: {
|
||||||
overrideNative: true
|
overrideNative: true // always use VHS
|
||||||
}
|
},
|
||||||
|
nativeAudioTracks: false, // disable native tracks***optional
|
||||||
|
nativeVideoTracks: false // – they interfere with VHS
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user