A video.js plugin that turns a video element into a HTML5 Panoramic 360 video player. Project video onto different shapes. Optionally supports Oculus Rift, HTC Vive and the GearVR.
npm install
npm run build
npm run local-samples
npm run serve
To test locally, visit localhost:3000/example.html Hosted example
For an iframe example using the allowvr attribute, visit localhost:3000/iframe.html Hosted example
To test macOS and iOS devices with Safari, you need a local/same domain source file. After running npm run local-samples
, visit localhost:3000/example-local.html an MP4 sample Hosted example OR visit localhost:3000/example-local-hls.html for a HLS sample Hosted example
<script src="./dist/player-skin.js"></script>
<script src="./dist/player.full.js"></script>
Host on a HTTP Server that supports byte range requests if you want the seek bar to work (e.g. Apache).
This plugin leverages the webvr-boilerplate project (which in turn uses webvr-polyfill and three.js) to create a 'responsive VR' experience across multiple devices.
Oculus Rift and HTC Vive playback requires Firefox Nightly with the WebVR addon, or experimental WebVR-enabled builds of Chromium. Go to WebVR.info for more info.
GearVR playback requires the latest Samsung Internet for Gear VR with WebVR support enabled. Go here for more info.
This project is a conglomeration of a few amazing open source libraries.
This work is sponsored by Brightcove, HapYak and StreamShark
- 0.3.0
- 0.2.2
- 0.2.0