title: How does Android MediaPlayer decide 3D Display by looking SEI FPA?
body: <p>I want to understand the working principles of the HTC Evo 3D's 3D Display; however, the code and HTCDev's tutorial do not help on this. It is said that the SEI FPA bit in the header overrides the choice which is given by hand such as:</p>
  
  <pre><code>public void surfaceChanged(SurfaceHolder surfaceholder, int i, int j, int k) {
      holder = surfaceholder;
      enableS3D(true, holder.getSurface()); // note SEI FPA flag in content
                                            // overrides this
  }
  </code></pre>
  
  <p>The play video code:</p>
  
  <pre><code>private void playVideo() {
      release();
      fileName = "HTCDemo.mp4";
      try {
          mediaPlayer = new MediaPlayer();
          final AssetFileDescriptor afd = getAssets().openFd(fileName);
          mediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
                  afd.getLength());
          mediaPlayer.setDisplay(holder);
          mediaPlayer.prepare();
          mediaPlayer.setOnPreparedListener(this);
          mediaPlayer.setOnVideoSizeChangedListener(this);
          mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
      } catch (Exception e) {
          Log.e(TAG, Log.getStackTraceString(e));
      }
  }
  </code></pre>
  
  <p>At this point, I could not track where it looks to the SEI FPA bit in the header. I need a help for showing the necessary code part. Thanks in advance.</p>