Skip to content

Commit

Permalink
fix: FrontSide -> BackSide for 360 videos due to changes in three.js (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored May 23, 2018
1 parent db749dc commit e58862d
Show file tree
Hide file tree
Showing 7 changed files with 367 additions and 360 deletions.
29 changes: 29 additions & 0 deletions examples/cube.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>videojs-vr Demo</title>
<link href="../node_modules/video.js/dist/video-js.css" rel="stylesheet">
<link href="../dist/videojs-vr.css" rel="stylesheet">
</head>
<body>
<video width="640" height="300" id="videojs-vr-player" class="video-js vjs-default-skin" controls playsinline>
<source src="../samples/doisethup_cubemap.mp4" type="video/mp4">
</video>
<ul>
<li><a href="../">return to main example</a></li>
</ul>
<script src="../node_modules/video.js/dist/video.js"></script>
<script src="../dist/videojs-vr.js"></script>
<script>
(function(window, videojs) {
var player = window.player = videojs('videojs-vr-player');
player.mediainfo = player.mediainfo || {};
player.mediainfo.projection = '360_CUBE';

// AUTO is the default and looks at mediainfo
var vr = window.vr = player.vr({projection: 'AUTO', debug: true, forceCardboard: false});
}(window, window.videojs));
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/fluid.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<source src="../samples/eagle-360.mp4" type="video/mp4">
</video>
<ul>
<li><a href="test/">Run unit tests in browser.</a></li>
<li><a href="../">return to main example</a></li>
</ul>
<script src="../node_modules/video.js/dist/video.js"></script>
<script src="../dist/videojs-vr.js"></script>
Expand Down
5 changes: 3 additions & 2 deletions examples/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<head>
<meta charset="utf-8">
<title>videojs-vr Demo</title>
<link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
<link href="dist/videojs-vr.css" rel="stylesheet">
</head>
<body>
<iframe width="700" height="400" src="../index.html" allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen="" allow="gyroscope; accelerometer; xr"></iframe>
<ul>
<li><a href="../">return to main example</a></li>
</ul>
</body>
</html>
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
</video>
<ul>
<li><a href="test/">Run unit tests in browser.</a></li>
<li><a href="examples/cube.html">Cube Video example</a></li>
<li><a href="examples/fluid.html">"Fluid" video size example</a></li>
<li><a href="examples/iframe.html">Iframe example</a></li>
</ul>
<script src="node_modules/video.js/dist/video.js"></script>
<script src="dist/videojs-vr.js"></script>
Expand Down
Loading

0 comments on commit e58862d

Please sign in to comment.