Skip to content

Commit

Permalink
Deprecate ControlDispatcher and DefaultControlDispatcher
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 386401066
  • Loading branch information
kim-vde committed Jul 23, 2021
1 parent d6c721f commit 72cf9c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
`Player.EVENT_MEDIA_METADATA_CHANGED` for convenient access to
structured metadata, or access the raw static metadata directly from the
`TrackSelection#getFormat()`.
* Deprecate `ControlDispatcher` and `DefaultControlDispatcher`. Use a
`ForwardingPlayer` or configure the player to customize operations.
* Remove deprecated symbols:
* Remove `Player.getPlaybackError`. Use `Player.getPlayerError` instead.
* Remove `Player.getCurrentTag`. Use `Player.getCurrentMediaItem` and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@

import com.google.android.exoplayer2.Player.RepeatMode;

/**
* Dispatches operations to the {@link Player}.
*
* <p>Implementations may choose to suppress (e.g. prevent playback from resuming if audio focus is
* denied) or modify (e.g. change the seek position to prevent a user from seeking past a
* non-skippable advert) operations.
*/
/** @deprecated Use a {@link ForwardingPlayer} or configure the player to customize operations. */
@Deprecated
public interface ControlDispatcher {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import static java.lang.Math.max;
import static java.lang.Math.min;

/** Default {@link ControlDispatcher}. */
/** @deprecated Use a {@link ForwardingPlayer} or configure the player to customize operations. */
@Deprecated
public class DefaultControlDispatcher implements ControlDispatcher {

private final long rewindIncrementMs;
Expand Down

0 comments on commit 72cf9c3

Please sign in to comment.