List<PlayerSubtitleTrack> getSubtitleTracks() throws IllegalStateException { assertIsInPlaybackState(); NoPlayerLog.w("Tried to get subtitle tracks but has not been implemented for MediaPlayer."); return Collections.emptyList(); }
List<PlayerVideoTrack> getVideoTracks() { assertIsInPlaybackState(); NoPlayerLog.w("Tried to get video tracks but has not been implemented for MediaPlayer."); return Collections.emptyList(); }
boolean clearVideoTrackSelection() { assertIsInPlaybackState(); NoPlayerLog.w("Tried to clear video track selection but has not been implemented for MediaPlayer."); return false; }
private void reportCreationError(Exception ex, Uri videoUri) { NoPlayerLog.w(ex, "Unable to open content: " + videoUri); currentState = PlaybackState.ERROR; internalErrorListener.onError(mediaPlayer, MediaPlayer.MEDIA_ERROR_UNKNOWN, 0); }
boolean clearAudioTrackSelection() { assertIsInPlaybackState(); NoPlayerLog.w("Tried to clear audio track selection but has not been implemented for MediaPlayer."); return false; }
boolean clearSubtitleTrack() throws IllegalStateException { assertIsInPlaybackState(); NoPlayerLog.w("Tried to hide subtitle track but has not been implemented for MediaPlayer."); return false; }
boolean selectSubtitleTrack(PlayerSubtitleTrack subtitleTrack) throws IllegalStateException { assertIsInPlaybackState(); NoPlayerLog.w("Tried to select subtitle track but has not been implemented for MediaPlayer."); return false; }
boolean selectVideoTrack(PlayerVideoTrack videoTrack) { assertIsInPlaybackState(); NoPlayerLog.w("Tried to select a video track but has not been implemented for MediaPlayer."); return false; }
Optional<PlayerVideoTrack> getSelectedVideoTrack() { assertIsInPlaybackState(); NoPlayerLog.w("Tried to get the currently playing video track but has not been implemented for MediaPlayer."); return Optional.absent(); }
@Override public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { if (bothDimensionsHaveChanged(width, height)) { videoSizeChangedListener.onVideoSizeChanged(width, height, 0, 1); } else { NoPlayerLog.w("Video size changed but we have swallowed the event due to only 1 dimension changing"); } previousWidth = width; previousHeight = height; }