Skip to content

Commit

Permalink
Merge pull request videojs#20 from kevleyski/main
Browse files Browse the repository at this point in the history
three.js version revert back to v129 as 130 breaks renderer.getSize
  • Loading branch information
kevleyski authored Jan 27, 2023
2 parents 3264b5e + f8ea3cb commit c9f5903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@babel/runtime": "^7.14.5",
"babel-polyfill": "^6.26.0",
"global": "^4.4.0",
"three": "0.137.5",
"three": "0.129.0",
"video.js": "^6 || ^7",
"webvr-polyfill": "0.10.12",
"webxr-polyfill": "^2.0.3"
Expand Down
4 changes: 3 additions & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,13 +754,15 @@ void main() {
document.body.appendChild(this.vrButton);
this.initImmersiveVR();
this.initXRPolyfill(displays);
} else {
this.initVRPolyfill(displays);
}
window.navigator.xr.setSession = (session) => {
this.currentSession = session;
this.renderer.xr.setSession(this.currentSession);
};
});

} else {
this.initVRPolyfill(displays);
}
}
Expand Down

0 comments on commit c9f5903

Please sign in to comment.