| java.lang.Object | |
| ↳ | com.amazonaws.ivs.player.Player.Listener |
Player listener interface. Provide an implementation of this interface to
addListener(Listener) to receive events from a Player instance.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Listener() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
onCue(Cue cue)
Indicates that a timed cue event occurred.
| ||||||||||
| abstract void |
onDurationChanged(long duration)
Indicates that source duration changed.
| ||||||||||
| abstract void |
onError(PlayerException exception)
Indicates that an error occurred.
| ||||||||||
| abstract void |
onQualityChanged(Quality quality)
Indicates that the playing quality changed either from a user action or from an
internal adaptive quality switch.
| ||||||||||
| abstract void |
onRebuffering()
Indicates that the player is buffering from a previous
PLAYING state. | ||||||||||
| abstract void |
onSeekCompleted(long time)
Indicates that the player has seeked to a given position as requested from
seekTo(long). | ||||||||||
| abstract void |
onStateChanged(Player.State state)
Indicates that the player state changed.
| ||||||||||
| abstract void |
onVideoSizeChanged(int width, int height)
Indicates that the video dimensions changed.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Indicates that source duration changed. This can occur after the
READY state to indicate a change in the duration of the media.
This value can be set to -1 for unknown or indefinite length streams.
| duration | the current duration of the source in milliseconds. |
|---|
Indicates that an error occurred. Errors are fatal and stop playback of the stream. The
player moves into IDLE on an error.
| exception | exception object with information for the error that occurred. |
|---|
Indicates that the playing quality changed either from a user action or from an internal adaptive quality switch.
| quality | current quality |
|---|
Indicates that the player is buffering from a previous PLAYING state.
Excludes user actions such as seeking, starting or resuming the stream.
Indicates that the player has seeked to a given position as requested from
seekTo(long).
| time | the seeked time in milliseconds. |
|---|
Indicates that the player state changed.
| state | current player state |
|---|
Indicates that the video dimensions changed.
| width | updated video width |
|---|---|
| height | updated video height |