title: How to make a simple VR video player by Google CardBoard Android SDK
body: <p>Im following as what Mog suggest in the post:</p>
  
  <p><a href="https://stackoverflow.com/questions/30277895/how-to-create-vr-video-player-using-google-cardboard-sdk-for-unity/30405578#30405578">How to create VR Video player using Google Cardboard SDK for Unity</a></p>
  
  <p>Here's my code snippet </p>
  
  <p>1.
  In the MainActivity's <code>onSurfaceCreated()</code> method , I initialise a texture and bind it to GL, and create a surface and a mediaplayer associated to them.</p>
  
  <p><a href="https://i.stack.imgur.com/6PiTK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6PiTK.png" alt="enter image description here"></a></p>
  
  <ol start="2">
  <li>in the <code>onNewFrame()</code> method, I update the texture as what Mog said in the post</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/FrIcj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FrIcj.png" alt="enter image description here"></a></p>
  
  <p>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.</p>