Skip to content

Commit

Permalink
Merge pull request videojs#14 from kevleyski/main
Browse files Browse the repository at this point in the history
chore: Swap webvr for webxr polyfill packages (PR fix ups - adding 180 top/bottom)
  • Loading branch information
kevleyski authored Jan 25, 2023
2 parents 8441f77 + a6528ac commit 33d206b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/180-tb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!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/video_180_TB.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 = '180';

var vr = window.vr = player.vr({projection: '180', debug: true, forceCardboard: false});
}(window, window.videojs));
</script>
</body>
</html>
Binary file added samples/video_180_TB.mp4
Binary file not shown.

0 comments on commit 33d206b

Please sign in to comment.