Open ineffablep opened 3 years ago
This issue is a bit old, but here is how I have implemented it:
if (vrActive) {
this.player.vr({ projection: '360' }).init()
} else {
this.player.vr({ projection: 'NONE' }).reset()
}
@christian-nils thanks sir
This issue is a bit old, but here is how I have implemented it:
if (vrActive) { this.player.vr({ projection: '360' }).init() } else { this.player.vr({ projection: 'NONE' }).reset() }
This is not working for me on versions 1.8 or 1.10.1. Going from a projection to NONE works, going from NONE to one of the projections does nothing. No errors or any other visible effect.
Description
I am trying to create videojs-vr in React JS , This is working fine in 360 View but I want to add a toggle button allow user to change 2D view or 360 View or any other Projection View.
I tried the code as suggested in issues, but it's not working.
Steps to reproduce. - CODE
Results
Not changing to 2d This should toggle from 3d to 2d
Expected
Please describe what you expected to see.
Actual
Toggle between 2d and 3d
versions
"videojs-vr": "^1.8.0"
videojs
"video.js": "^7.15.4"
browsers
Chrome and Safari