Im following as what Mog suggest in the post:
How to create VR Video player using Google Cardboard SDK for Unity
Here's my code snippet
1.
In the MainActivity's onSurfaceCreated()
method , I initialise a texture and bind it to GL, and create a surface and a mediaplayer associated to them.
- in the
onNewFrame()
method, I update the texture as what Mog said in the post
I saved my short video as small.mp4 in the raw folder, however , after I start my app the two sides are blank, and the video's sound is actually playing.