mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
Add support for VR videos through videojs-vr
This commit is contained in:
parent
8806c57c63
commit
df0cd30236
6 changed files with 192 additions and 1 deletions
|
@ -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' }];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue