/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
/** * 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(); }
/** * 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(); }
/** * 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; } if (!mAudioDeviceFromUser) registerAudioPlug(true); mPlayRequested = true; if (mWindow.areSurfacesWaiting()) return; } mPlaying = true; } nativePlay(); }
/** * 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; } if (!mAudioDeviceFromUser) registerAudioPlug(true); mPlayRequested = true; if (mWindow.areSurfacesWaiting()) return; } mPlaying = true; } nativePlay(); }
/** * 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; } if (!mAudioDeviceFromUser) registerAudioPlug(true); mPlayRequested = true; if (mWindow.areSurfacesWaiting()) return; } mPlaying = true; } nativePlay(); }