Package com.google.android.exoplayer2
Class DefaultControlDispatcher
- java.lang.Object
-
- com.google.android.exoplayer2.DefaultControlDispatcher
-
- All Implemented Interfaces:
ControlDispatcher
@Deprecated public class DefaultControlDispatcher extends Object implements ControlDispatcher
Deprecated.Use aForwardingPlayeror configure the player to customize operations.
-
-
Constructor Summary
Constructors Constructor Description DefaultControlDispatcher()Deprecated.Creates an instance.DefaultControlDispatcher(long fastForwardIncrementMs, long rewindIncrementMs)Deprecated.Creates an instance with the given increments.
-
Method Summary
All Methods Instance Methods Concrete 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.longgetFastForwardIncrementMs(Player player)Deprecated.Returns the fast forward increment in milliseconds.longgetRewindIncrementMs(Player player)Deprecated.Returns the rewind increment in milliseconds.booleanisFastForwardEnabled()Deprecated.Returnstrueif fast forward is enabled,falseotherwise.booleanisRewindEnabled()Deprecated.Returnstrueif rewind is enabled,falseotherwise.
-
-
-
Constructor Detail
-
DefaultControlDispatcher
public DefaultControlDispatcher()
Deprecated.Creates an instance.
-
DefaultControlDispatcher
public DefaultControlDispatcher(long fastForwardIncrementMs, long rewindIncrementMs)Deprecated.Creates an instance with the given increments.- Parameters:
fastForwardIncrementMs- The fast forward increment in milliseconds. A non-positive value disables the fast forward operation.rewindIncrementMs- The rewind increment in milliseconds. A non-positive value disables the rewind operation.
-
-
Method Detail
-
dispatchPrepare
public boolean dispatchPrepare(Player player)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.prepare()operation.- Specified by:
dispatchPreparein interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetPlayWhenReady
public boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.setPlayWhenReady(boolean)operation.- Specified by:
dispatchSetPlayWhenReadyin interfaceControlDispatcher- 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
public boolean dispatchSeekTo(Player player, int windowIndex, long positionMs)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.seekTo(int, long)operation.- Specified by:
dispatchSeekToin interfaceControlDispatcher- 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
public boolean dispatchPrevious(Player player)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.seekToPreviousWindow()operation.- Specified by:
dispatchPreviousin interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchNext
public boolean dispatchNext(Player player)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.seekToNextWindow()operation.- Specified by:
dispatchNextin interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchRewind
public boolean dispatchRewind(Player player)
Deprecated.Description copied from interface:ControlDispatcherDispatches a rewind operation.- Specified by:
dispatchRewindin interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchFastForward
public boolean dispatchFastForward(Player player)
Deprecated.Description copied from interface:ControlDispatcherDispatches a fast forward operation.- Specified by:
dispatchFastForwardin interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetRepeatMode
public boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.setRepeatMode(int)operation.- Specified by:
dispatchSetRepeatModein interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.repeatMode- The repeat mode.- Returns:
- True if the operation was dispatched. False if suppressed.
-
dispatchSetShuffleModeEnabled
public boolean dispatchSetShuffleModeEnabled(Player player, boolean shuffleModeEnabled)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.setShuffleModeEnabled(boolean)operation.- Specified by:
dispatchSetShuffleModeEnabledin interfaceControlDispatcher- 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
public boolean dispatchStop(Player player, boolean reset)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.stop()operation.- Specified by:
dispatchStopin interfaceControlDispatcher- 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
public boolean dispatchSetPlaybackParameters(Player player, PlaybackParameters playbackParameters)
Deprecated.Description copied from interface:ControlDispatcherDispatches aPlayer.setPlaybackParameters(PlaybackParameters)operation.- Specified by:
dispatchSetPlaybackParametersin interfaceControlDispatcher- Parameters:
player- ThePlayerto which the operation should be dispatched.playbackParameters- The playback parameters.- Returns:
- True if the operation was dispatched. False if suppressed.
-
isRewindEnabled
public boolean isRewindEnabled()
Deprecated.Description copied from interface:ControlDispatcherReturnstrueif rewind is enabled,falseotherwise.- Specified by:
isRewindEnabledin interfaceControlDispatcher
-
isFastForwardEnabled
public boolean isFastForwardEnabled()
Deprecated.Description copied from interface:ControlDispatcherReturnstrueif fast forward is enabled,falseotherwise.- Specified by:
isFastForwardEnabledin interfaceControlDispatcher
-
getRewindIncrementMs
public long getRewindIncrementMs(Player player)
Deprecated.Returns the rewind increment in milliseconds.
-
getFastForwardIncrementMs
public long getFastForwardIncrementMs(Player player)
Deprecated.Returns the fast forward increment in milliseconds.
-
-