Beispiel #1
0
 /** Play the media */
 public void play() {
   synchronized (this) {
     if (!mPlaying) {
       /* HACK: stop() reset the audio output, so set it again before first play. */
       if (mAudioReset) {
         if (mAudioOutput != null) nativeSetAudioOutput(mAudioOutput);
         if (mAudioOutputDevice != null) nativeSetAudioOutputDevice(mAudioOutputDevice);
         mAudioReset = false;
       }
       mPlayRequested = true;
       if (mWindow.areSurfacesWaiting()) return;
     }
     mPlaying = true;
   }
   nativePlay();
 }