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 Object implements Player.EventListener
Constructor and Description |
---|
DefaultEventListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
onTimelineChanged(Timeline timeline,
Object manifest)
Deprecated.
|
void |
onTimelineChanged(Timeline timeline,
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, wait
onLoadingChanged, onPlaybackParametersChanged, onPlayerError, onPlayerStateChanged, onPositionDiscontinuity, onRepeatModeChanged, onSeekProcessed, onShuffleModeEnabledChanged, onTracksChanged
public void onTimelineChanged(Timeline timeline, @Nullable Object manifest, @Player.TimelineChangeReason int reason)
Player.EventListener
Note 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.EventListener
timeline
- 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 Object manifest)
Player.EventListener.onTimelineChanged(Timeline, Object, int)
instead.