├── .gitignore ├── .jshintrc ├── LICENSE-MIT ├── README.md ├── dist ├── player-skin.js └── player.full.js ├── example-camera.html ├── example-local-hls.html ├── example-local.html ├── example.html ├── iframe.html ├── package.json ├── server.js ├── src ├── .jshintrc ├── css │ └── player.css └── js │ ├── player-no-videojs.js │ ├── player-skin.js │ ├── player.js │ ├── videojs.vr.js │ └── webvr.config.js └── urls.txt /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /bower_components/ 3 | .DS_Store 4 | /samples/ 5 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "node": true 14 | } 15 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Sean Lawrence 2 | Copyright (c) 2015 James Broberg 3 | Copyright (c) 2016 Brightcove Inc., HapYak Inc., MetaCDN Pty. Ltd. 4 | 5 | Permission is hereby granted, free of charge, to any person 6 | obtaining a copy of this software and associated documentation 7 | files (the "Software"), to deal in the Software without 8 | restriction, including without limitation the rights to use, 9 | copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following 12 | conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 | OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # VR 3 | 4 | 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. 5 | 6 | [View Demo](https://videojs-vr.s3.amazonaws.com/latest/example.html) 7 | 8 | 9 | ### Build 10 | ``` 11 | npm install 12 | npm run build 13 | ``` 14 | 15 | ### Download Local Samples 16 | ``` 17 | npm run local-samples 18 | ``` 19 | 20 | ### Run 21 | ``` 22 | npm run serve 23 | ``` 24 | 25 | ## Examples 26 | To test locally, visit localhost:3000/example.html 27 | [Hosted example](https://videojs-vr.s3.amazonaws.com/latest/example.html) 28 | 29 | For an iframe example, visit localhost:3000/iframe.html [Hosted example](https://videojs-vr.s3.amazonaws.com/latest/iframe.html) 30 | 31 | 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](https://videojs-vr.s3.amazonaws.com/latest/example-local.html) OR visit localhost:3000/example-local-hls.html for a HLS sample [Hosted example](https://videojs-vr.s3.amazonaws.com/latest/example-local-hls.html) 32 | 33 | ## Setting up your own player 34 | 35 | Include the following script imports: 36 | 37 | 38 | 39 | 40 | If you want to roll your own VideoJS instance and just want the plugin and supporting libraries (e.g. to use as a Brightcove plugin), import the below instead: 41 | 42 | 12 | 13 | 14 | 20 | 21 | 22 | 23 | 24 | 25 |