Skip to content

Commit

Permalink
Merge pull request videojs#10 from kevleyski/main
Browse files Browse the repository at this point in the history
chore: Swap webvr for webxr polyfill packages
  • Loading branch information
kevleyski authored Dec 20, 2022
2 parents 1cc47ef + ff858af commit de6db15
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 89 deletions.
7 changes: 0 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<a name="1.10.2"></a>
## [1.10.2](https://github.com/videojs/videojs-vr/compare/v1.1.1...v1.1.2) (2018-02-20)

### Chores

* **package:** Move from WebVR polyfill to WebXR ([#216](https://github.com/videojs/videojs-vr/issues/216))

<a name="1.10.1"></a>
## [1.10.1](https://github.com/videojs/videojs-vr/compare/v1.10.0...v1.10.1) (2022-08-16)

Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ When you've made your changes, push your commit(s) to your fork and issue a pull
Testing is a crucial part of any software project. For all but the most trivial changes (typos, etc) test cases are expected. Tests are run in actual browsers using [Karma][karma].

- In all available and supported browsers: `npm test`
- In a specific browser: `npm run test`
- While development server is running (`npm start`), navigate to [`http://localhost:9999/test/`][local]


Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videojs-vr",
"version": "1.10.2",
"version": "1.10.1",
"description": "A plugin to add 360 and VR video support to video.js.",
"author": {
"name": "James Broberg",
Expand Down Expand Up @@ -84,7 +84,6 @@
},
"dependencies": {
"@babel/runtime": "^7.14.5",
"babel-polyfill": "^6.26.0",
"global": "^4.4.0",
"three": "0.125.2",
"video.js": "^6 || ^7",
Expand Down Expand Up @@ -114,5 +113,10 @@
"lint-staged": {
"*.js": "vjsstandard --fix",
"README.md": "doctoc --notitle"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}
3 changes: 1 addition & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'babel-polyfill';
import {version as VERSION} from '../package.json';
import window from 'global/window';
import document from 'global/document';
Expand Down Expand Up @@ -805,7 +804,7 @@ void main() {
// For iOS we need permission for the device orientation data, this will pop up an 'Allow'
// eslint-disable-next-line
if (typeof window.DeviceMotionEvent === 'function' &&
typeof window.DeviceMotionEvent.requestPermission === "function") {
typeof window.DeviceMotionEvent.requestPermission === 'function') {
const self = this;

window.DeviceMotionEvent.requestPermission().then(response => {
Expand Down
77 changes: 0 additions & 77 deletions test/plugin.test.js

This file was deleted.

0 comments on commit de6db15

Please sign in to comment.