title: How to make a simple VR video player by Google CardBoard Android SDK and Rajawali
body: <p>I am a new man in these area. I am trying to change a <a href="https://github.com/ejeinc/RajawaliCardboardExample">program</a> in github to play video for cardboard now.</p>
  
  <p>I modified the MyRenderer by using StreamingTexture.</p>
  
  <pre><code>public class MyRenderer extends RajawaliCardboardRenderer {
  
  public MyRenderer(Context context) {
      super(context);
  }
  
  private MediaPlayer mMediaPlayer;
  private StreamingTexture streamingTexture;
  
  @Override
  protected void initScene() {
      mMediaPlayer = MediaPlayer.create(this.getContext(), R.raw.test);
  
      streamingTexture = new StreamingTexture("video", mMediaPlayer);
      Sphere sphere = createPhotoSphereWithTexture(streamingTexture);
  
      getCurrentScene().addChild(sphere);
  
      getCurrentCamera().setPosition(Vector3.ZERO);
      getCurrentCamera().setFieldOfView(75);
  }
  
  private static Sphere createPhotoSphereWithTexture(ATexture texture) {
  
      Material material = new Material();
      material.setColor(0);
  
      try {
          material.addTexture(texture);
      } catch (ATexture.TextureException e) {
          throw new RuntimeException(e);
      }
  
      Sphere sphere = new Sphere(50, 64, 32);
      sphere.setScaleX(-1);
      sphere.setMaterial(material);
  
      return sphere;
  }
  }
  </code></pre>
  
  <p>I saved my short video as test.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>
  
  <p>I need some help. Thank you very much!</p>