Package com.google.android.exoplayer2
Interface ControlDispatcher
-
- All Known Implementing Classes:
DefaultControlDispatcher
@Deprecated public interface ControlDispatcher
Deprecated.Use aForwardingPlayeror configure the player to customize operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleandispatchFastForward(Player player)Deprecated.Dispatches a fast forward operation.booleandispatchNext(Player player)Deprecated.Dispatches aPlayer.seekToNextWindow()operation.booleandispatchPrepare(Player player)Deprecated.Dispatches aPlayer.prepare()operation.booleandispatchPrevious(Player player)Deprecated.Dispatches aPlayer.seekToPreviousWindow()operation.booleandispatchRewind(Player player)Deprecated.Dispatches a rewind operation.booleandispatchSeekTo(Player player, int windowIndex, long positionMs)Deprecated.Dispatches aPlayer.seekTo(int, long)operation.booleandispatchSetPlaybackParameters(Player player, PlaybackParameters playbackParameters)Deprecated.Dispatches aPlayer.setPlaybackParameters(PlaybackParameters)operation.booleandispatchSetPlayWhenReady(Player player, boolean playWhenReady)Deprecated.Dispatches aPlayer.setPlayWhenReady(boolean)operation.booleandispatchSetRepeatMode(Player player, int repeatMode)Deprecated.Dispatches aPlayer.setRepeatMode(int)operation.booleandispatchSetShuffleModeEnabled(Player player, boolean shuffleModeEnabled)Deprecated.Dispatches aPlayer.setShuffleModeEnabled(boolean)operation.booleandispatchStop(Player player, boolean reset)Deprecated.Dispatches aPlayer.stop()operation.booleanisFastForwardEnabled()Deprecated.Returnstrueif fast forward is enabled,falseotherwise.booleanisRewindEnabled()Deprecated.Returnstrueif rewind is enabled,falseotherwise.
-
-
-
Method Detail
-
dispatchPrepare
boolean dispatchPrepare(Player player)
Deprecated.Dispatches aPlayer.prepare()operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetPlayWhenReady
boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady)
Deprecated.Dispatches aPlayer.setPlayWhenReady(boolean)operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.playWhenReady- Whether playback should proceed when ready.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSeekTo
boolean dispatchSeekTo(Player player, int windowIndex, long positionMs)
Deprecated.Dispatches aPlayer.seekTo(int, long)operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.windowIndex- The index of the window.positionMs- The seek position in the specified window, orC.TIME_UNSETto seek to the window's default position.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchPrevious
boolean dispatchPrevious(Player player)
Deprecated.Dispatches aPlayer.seekToPreviousWindow()operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchNext
boolean dispatchNext(Player player)
Deprecated.Dispatches aPlayer.seekToNextWindow()operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchRewind
boolean dispatchRewind(Player player)
Deprecated.Dispatches a rewind operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchFastForward
boolean dispatchFastForward(Player player)
Deprecated.Dispatches a fast forward operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetRepeatMode
boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode)
Deprecated.Dispatches aPlayer.setRepeatMode(int)operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.repeatMode- The repeat mode.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetShuffleModeEnabled
boolean dispatchSetShuffleModeEnabled(Player player, boolean shuffleModeEnabled)
Deprecated.Dispatches aPlayer.setShuffleModeEnabled(boolean)operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.shuffleModeEnabled- Whether shuffling is enabled.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchStop
boolean dispatchStop(Player player, boolean reset)
Deprecated.Dispatches aPlayer.stop()operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.reset- Whether the player should be reset.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetPlaybackParameters
boolean dispatchSetPlaybackParameters(Player player, PlaybackParameters playbackParameters)
Deprecated.Dispatches aPlayer.setPlaybackParameters(PlaybackParameters)operation.- Parameters:
player- ThePlayerto which the operation should be dispatched.playbackParameters- The playback parameters.- Returns:
- True if the operation was dispatched. False if suppressed.
-
isRewindEnabled
boolean isRewindEnabled()
Deprecated.Returnstrueif rewind is enabled,falseotherwise.
-
isFastForwardEnabled
boolean isFastForwardEnabled()
Deprecated.Returnstrueif fast forward is enabled,falseotherwise.
-
-