Skip to content

Commit

Permalink
Merge pull request #2010 from syeopite/360videosupport
Browse files Browse the repository at this point in the history
Add experimental support for 360° videos
  • Loading branch information
TheFrenchGhosty authored May 23, 2021
2 parents 8806c57 + f529948 commit 993d731
Show file tree
Hide file tree
Showing 47 changed files with 52,817 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/css/videojs-vr.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions assets/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ player.on('error', function (event) {
}
});

// Enable VR video support
if (video_data.vr && video_data.params.vr_mode) {
player.crossOrigin("anonymous")
player.vr({projection: "EAC"});
}

// 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' }];
Expand Down
Loading

0 comments on commit 993d731

Please sign in to comment.