mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-05 18:24:06 +00:00
Add support for VR videos through videojs-vr
This commit is contained in:
@@ -148,6 +148,11 @@ player.on('error', function (event) {
|
||||
}
|
||||
});
|
||||
|
||||
// Enable VR video support
|
||||
if (video_data.vr) {
|
||||
player.vr();
|
||||
}
|
||||
|
||||
// Add markers
|
||||
if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
|
||||
var markers = [{ time: video_data.params.video_start, text: 'Start' }];
|
||||
|
176
assets/js/videojs-vr.min.js
vendored
Normal file
176
assets/js/videojs-vr.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user