Skip to content

Commit

Permalink
feat: expose more of vrs methods (#10)
Browse files Browse the repository at this point in the history
* feat: expose more of vrs methods
* fix: switching a source should not create two canvases
* fix: loading via player.src and video element source should work
* fix: switching between 360 and non-360 sources with AUTO should work
* fix: allow Sphere/Cube as mediainfo projections
  • Loading branch information
brandonocasey authored Aug 7, 2017
1 parent 33deadc commit 3cc1092
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 164 deletions.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
<script>
(function(window, videojs) {
var player = window.player = videojs('videojs-vr-player');
player.vr({projection: '360', debug: true});
player.mediainfo = player.mediainfo || {};
player.mediainfo.projection = '360';

// AUTO is the default and looks at mediainfo
player.vr({projection: 'AUTO', debug: true});
}(window, window.videojs));
</script>
</body>
Expand Down
Loading

0 comments on commit 3cc1092

Please sign in to comment.