Open tuananhcwrs opened 5 years ago
Hello Any one can support? @dam00n could you please?
Actuallly, I need to enable/disable VR mode while still keeps video playing. That is my goal. Thanks!
Hey @tuananhcwrs, with ViroReact, you can't switch directly from Mono to VR mode - i think you might have to re-create the ViroSampleSceneNavigator with the new mode. Hope that helps!
Hello @dthian ,
Thank for your reply. My goal is that I need to keep video playing while switching between mono and vr mode. Using a different Navigator does not help me to keep video continue playing. Or I miss something?
If there is no way to work around, then I have to accept that it is a limitation. Thanks.
Description
Hello (@dthian )
When I use native google vr player, and it is in Vr mode, the close button is used to switch back to mono mode (in react-viro, we have to set vrModeEnabled: false )
So to mimic the above behavior in my app using ViroVRSceneNavigator, I listen to onExitViro event (happen when users click on close button) to set vrModeEnabled: false.
Actual result is that the video turns black and sound keep on playing.
Reproducible Demo
Here is my demo code
The ViroSampleSceneNavigator.js
I make sure that I have the "ViroMediaPlayer" scene, just no need to put it here.
And then in the App.js
Please help.