Player.EventListener interface directly for selective overrides as all methods
are implemented as no-op default methods.@Deprecated public abstract static class Player.DefaultEventListener extends java.lang.Object implements Player.EventListener
| Constructor and Description |
|---|
DefaultEventListener()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onTimelineChanged(Timeline timeline,
java.lang.Object manifest)
Deprecated.
|
void |
onTimelineChanged(Timeline timeline,
java.lang.Object manifest,
int reason)
Deprecated.
Called when the timeline and/or manifest has been refreshed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonLoadingChanged, onPlaybackParametersChanged, onPlayerError, onPlayerStateChanged, onPositionDiscontinuity, onRepeatModeChanged, onSeekProcessed, onShuffleModeEnabledChanged, onTracksChangedpublic void onTimelineChanged(Timeline timeline, @Nullable java.lang.Object manifest, @Player.TimelineChangeReason int reason)
Player.EventListenerNote that if the timeline has changed then a position discontinuity may also have
occurred. For example, the current period index may have changed as a result of periods being
added or removed from the timeline. This will not be reported via a separate call to
Player.EventListener.onPositionDiscontinuity(int).
onTimelineChanged in interface Player.EventListenertimeline - The latest timeline. Never null, but may be empty.manifest - The latest manifest. May be null.reason - The Player.TimelineChangeReason responsible for this timeline change.@Deprecated public void onTimelineChanged(Timeline timeline, @Nullable java.lang.Object manifest)
Player.EventListener.onTimelineChanged(Timeline, Object, int) instead.