void play() throws IllegalStateException { assertVideoLoaded(); exoPlayer.setPlayWhenReady(true); }
boolean selectSubtitleTrack(PlayerSubtitleTrack subtitleTrack) throws IllegalStateException { assertVideoLoaded(); return compositeTrackSelector.selectTextTrack(subtitleTrack, rendererTypeRequester); }
float getVolume() { assertVideoLoaded(); return exoPlayer.getVolume(); }
long mediaDurationInMillis() throws IllegalStateException { assertVideoLoaded(); return exoPlayer.getDuration(); }
int bufferPercentage() throws IllegalStateException { assertVideoLoaded(); return exoPlayer.getBufferedPercentage(); }
void pause() throws IllegalStateException { assertVideoLoaded(); exoPlayer.setPlayWhenReady(false); }
List<PlayerSubtitleTrack> getSubtitleTracks() throws IllegalStateException { assertVideoLoaded(); return compositeTrackSelector.getSubtitleTracks(rendererTypeRequester); }
boolean clearAudioTrackSelection() { assertVideoLoaded(); return compositeTrackSelector.clearAudioTrack(rendererTypeRequester); }
boolean selectVideoTrack(PlayerVideoTrack playerVideoTrack) { assertVideoLoaded(); return compositeTrackSelector.selectVideoTrack(playerVideoTrack, rendererTypeRequester); }
void setRepeating(boolean repeating) { assertVideoLoaded(); exoPlayer.setRepeatMode(repeating ? Player.REPEAT_MODE_ALL : Player.REPEAT_MODE_OFF); }
long playheadPositionInMillis() throws IllegalStateException { assertVideoLoaded(); return exoPlayer.getCurrentPosition(); }
void seekTo(long positionInMillis) throws IllegalStateException { assertVideoLoaded(); exoPlayer.seekTo(positionInMillis); }
boolean clearVideoTrackSelection() { assertVideoLoaded(); return compositeTrackSelector.clearVideoTrack(rendererTypeRequester); }
AudioTracks getAudioTracks() throws IllegalStateException { assertVideoLoaded(); return compositeTrackSelector.getAudioTracks(rendererTypeRequester); }
boolean selectAudioTrack(PlayerAudioTrack audioTrack) throws IllegalStateException { assertVideoLoaded(); return compositeTrackSelector.selectAudioTrack(audioTrack, rendererTypeRequester); }
boolean clearSubtitleTrackSelection() throws IllegalStateException { assertVideoLoaded(); return compositeTrackSelector.clearSubtitleTrack(rendererTypeRequester); }
void setSubtitleRendererOutput(TextRendererOutput textRendererOutput) throws IllegalStateException { assertVideoLoaded(); exoPlayer.addTextOutput(textRendererOutput.output()); }
List<PlayerVideoTrack> getVideoTracks() { assertVideoLoaded(); return compositeTrackSelector.getVideoTracks(rendererTypeRequester, options.contentType()); }
Optional<PlayerVideoTrack> getSelectedVideoTrack() { assertVideoLoaded(); return compositeTrackSelector.getSelectedVideoTrack(exoPlayer, rendererTypeRequester, options.contentType()); }
void removeSubtitleRendererOutput(TextRendererOutput textRendererOutput) throws IllegalStateException { assertVideoLoaded(); exoPlayer.removeTextOutput(textRendererOutput.output()); }