Add support for VR videos through videojs-vr

This commit is contained in:
syeopite
2021-04-11 06:09:10 -07:00
parent 8806c57c63
commit df0cd30236
6 changed files with 192 additions and 1 deletions

View File

@ -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' }];