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
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82
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' }];