Commit e9511a56 by tonihei Committed by Ian Baker

Deprecate onSeekProcessed.

PiperOrigin-RevId: 308246116
parent 13c668f9
......@@ -26,6 +26,8 @@
consistency.
* Deprecate and rename `onLoadingChanged` to `onIsLoadingChanged` for
consistency.
* Deprecate `onSeekProcessed` because all seek changes happen instantly
now and listening to `onPositionDiscontinuity` is sufficient.
* Add `ExoPlayer.setPauseAtEndOfMediaItems` to let the player pause at the
end of each media item
([#5660](https://github.com/google/ExoPlayer/issues/5660)).
......
......@@ -582,10 +582,10 @@ public interface Player {
default void onPlaybackSpeedChanged(float playbackSpeed) {}
/**
* Called when all pending seek requests have been processed by the player. This is guaranteed
* to happen after any necessary changes to the player state were reported to {@link
* #onPlaybackStateChanged(int)}.
* @deprecated Seeks are processed without delay. Listen to {@link
* #onPositionDiscontinuity(int)} with reason {@link #DISCONTINUITY_REASON_SEEK} instead.
*/
@Deprecated
default void onSeekProcessed() {}
}
......
......@@ -554,6 +554,7 @@ public class AnalyticsCollector
}
}
@SuppressWarnings("deprecation")
@Override
public final void onSeekProcessed() {
EventTime eventTime = generateCurrentPlayerMediaPeriodEventTime();
......
......@@ -190,10 +190,11 @@ public interface AnalyticsListener {
default void onSeekStarted(EventTime eventTime) {}
/**
* Called when a seek operation was processed.
*
* @param eventTime The event time.
* @deprecated Seeks are processed without delay. Listen to {@link
* #onPositionDiscontinuity(EventTime, int)} with reason {@link
* Player#DISCONTINUITY_REASON_SEEK} instead.
*/
@Deprecated
default void onSeekProcessed(EventTime eventTime) {}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment