I have created a VR video player using Google Cardboard Android SDK and Rajawali VR.
I want to add control buttons like play, pause, stream like a normal video player.
How can I implement this?
Media control buttons in 360 Video player made using google cardboard and rajawali
647 views Asked by Himanshu Singla At
1
Create a button UI inside the Sphere where your 360 video is textured. Try this code:
You can use Cube or other primitves rather than Plane in Rajawali to map your texture to.
Create your own way to trigger the button. For example, using a focus point at the center. If the focus point is inside the button, then the button is triggered.
Notify the video player. Call start(), pause() or stop() method of MediaPlayer to control playback when the button is triggered.