PlayerEvent

sealed class PlayerEvent : Event

Includes all possible events that only the Player can emit.

Types

Active
Link copied to clipboard
class Active : PlayerEvent
Emitted when a Source or PlaylistConfig is loaded into the player.
AdBreakFinished
Link copied to clipboard
data class AdBreakFinished(adBreak: AdBreak?) : PlayerEvent
Emitted when an ad break has finished.
AdBreakStarted
Link copied to clipboard
data class AdBreakStarted(adBreak: AdBreak?) : PlayerEvent
Emitted when an ad break has started.
AdClicked
Link copied to clipboard
data class AdClicked(clickThroughUrl: String?) : PlayerEvent
Emitted when an ad was clicked.
AdError
Link copied to clipboard
data class AdError(adItem: AdItem?, code: Int, message: String?, adConfig: AdConfig?) : PlayerEvent
Emitted when an error with the ad playback occurs.
AdFinished
Link copied to clipboard
data class AdFinished(ad: Ad?) : PlayerEvent
Emitted when an ad has finished playback.
AdLinearityChanged
Link copied to clipboard
data class AdLinearityChanged(isLinear: Boolean) : PlayerEvent
Emitted when the linearity of a VPAID ad changes.
AdManifestLoad
Link copied to clipboard
data class AdManifestLoad(adConfig: AdConfig, adBreak: AdBreak?) : PlayerEvent
Emitted when the download of an ad manifest is started.
AdManifestLoaded
Link copied to clipboard
data class AdManifestLoaded(adConfig: AdConfig, adBreak: AdBreak?, downloadTime: Long) : PlayerEvent
Emitted when an ad manifest was successfully loaded.
AdQuartile
Link copied to clipboard
data class AdQuartile(quartile: AdQuartile) : PlayerEvent
Emitted when the playback of an ad has progressed over a quartile boundary.
AdScheduled
Link copied to clipboard
data class AdScheduled(numberOfAds: Int) : PlayerEvent
Emitted when an ad manifest was successfully downloaded, parsed and added into the ad break schedule.
AdSkipped
Link copied to clipboard
data class AdSkipped(ad: Ad?) : PlayerEvent
Emitted when an ad was skipped.
AdStarted
Link copied to clipboard
data class AdStarted(clientType: AdSourceType?, clickThroughUrl: String?, indexInQueue: Int, duration: Double, timeOffset: Double, position: String?, skipOffset: Double, ad: Ad?) : PlayerEvent
Emitted when the playback of an ad has started.
AudioPlaybackQualityChanged
Link copied to clipboard
data class AudioPlaybackQualityChanged(oldAudioQuality: AudioQuality?, newAudioQuality: AudioQuality?) : PlayerEvent
Emitted when the current audio playback quality has changed.
CastAvailable
Link copied to clipboard
class CastAvailable : PlayerEvent
Emitted when casting to a cast-compatible device is available.
CastPaused
Link copied to clipboard
class CastPaused : PlayerEvent
Emitted when the playback on a cast-compatible device was paused.
CastPlaybackFinished
Link copied to clipboard
class CastPlaybackFinished : PlayerEvent
Emitted when the playback on a cast-compatible device has finished.
CastPlaying
Link copied to clipboard
class CastPlaying : PlayerEvent
Emitted when playback on a cast-compatible device has started.
CastStart
Link copied to clipboard
class CastStart : PlayerEvent
Emitted when casting is initiated, but the user still needs to choose which device should be used.
CastStarted
Link copied to clipboard
data class CastStarted(deviceName: String?) : PlayerEvent
Emitted when the cast app is launched successfully.
CastStopped
Link copied to clipboard
class CastStopped : PlayerEvent
Emitted when casting to a cast-compatible device is stopped.
CastTimeUpdated
Link copied to clipboard
class CastTimeUpdated : PlayerEvent
Emitted when the time update from the currently used cast-compatible device is received.
CastWaitingForDevice
Link copied to clipboard
data class CastWaitingForDevice(castPayload: CastPayload) : PlayerEvent
Emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for playback.
CueEnter
Link copied to clipboard
data class CueEnter(cue: Cue) : PlayerEvent
Emitted when a subtitle cue transitions into the active status.
CueExit
Link copied to clipboard
data class CueExit(cue: Cue) : PlayerEvent
Emitted when an active subtitle cue transitions into the inactive status.
Destroy
Link copied to clipboard
class Destroy : PlayerEvent
Emitted when the player was destroyed.
DroppedVideoFrames
Link copied to clipboard
data class DroppedVideoFrames(droppedFrames: Int, elapsedTime: Double) : PlayerEvent
Emitted when video frames have been dropped.
DvrWindowExceeded
Link copied to clipboard
class DvrWindowExceeded : PlayerEvent
Emitted when the player is paused or in buffering state and the timeShift offset has exceeded the available timeShift window.
Error
Link copied to clipboard
data class Error(code: PlayerErrorCode, message: String, data: Any?) : PlayerEvent, ErrorEvent
Emitted when a player error occurred.
FullscreenDisabled
Link copied to clipboard
class FullscreenDisabled : PlayerEvent
Emitted when the fullscreen functionality has been disabled.
FullscreenEnabled
Link copied to clipboard
class FullscreenEnabled : PlayerEvent
Emitted when the fullscreen functionality has been enabled.
FullscreenEnter
Link copied to clipboard
class FullscreenEnter : PlayerEvent
Emitted when the player enters fullscreen mode.
FullscreenExit
Link copied to clipboard
class FullscreenExit : PlayerEvent
Emitted when the player exits fullscreen mode.
Impression
Link copied to clipboard
data class Impression(data: ImpressionData) : PlayerEvent
Emitted when an impression call succeeded.
Inactive
Link copied to clipboard
class Inactive : PlayerEvent
Emitted when the player was unloaded.
LicenseValidated
Link copied to clipboard
data class LicenseValidated(data: LicenseData) : PlayerEvent
Emitted when a licensing call succeeded.
Metadata
Link copied to clipboard
data class Metadata(metadata: Metadata, type: String) : PlayerEvent
Emitted when metadata (e.g.
Muted
Link copied to clipboard
class Muted : PlayerEvent
Emitted when the player is muted.
Paused
Link copied to clipboard
data class Paused(time: Double) : PlayerEvent
Emitted when the player is paused.
PictureInPictureAvailabilityChanged
Link copied to clipboard
data class PictureInPictureAvailabilityChanged(isPictureInPictureAvailable: Boolean) : PlayerEvent
Emitted when the availability of the Picture-in-Picture mode changed.
PictureInPictureEnter
Link copied to clipboard
class PictureInPictureEnter : PlayerEvent
Emitted when the player enters Picture-In-Picture mode.
PictureInPictureExit
Link copied to clipboard
class PictureInPictureExit : PlayerEvent
Emitted when the player exits Picture-In-Picture mode.
Play
Link copied to clipboard
data class Play(time: Double) : PlayerEvent
Emitted when the player receives an intention to play (i.
PlaybackFinished
Link copied to clipboard
class PlaybackFinished : PlayerEvent
Emitted when playback of the Source has finished.
Playing
Link copied to clipboard
data class Playing(time: Double) : PlayerEvent
Emitted when the player enters the playing state after calling Player.play.
PlaylistTransition
Link copied to clipboard
data class PlaylistTransition(from: Source, to: Source) : PlayerEvent
Emitted when the player transitions between two sources in a playlist.
Ready
Link copied to clipboard
class Ready : PlayerEvent
Emitted when the player is ready to play and to handle API calls.
RenderFirstFrame
Link copied to clipboard
class RenderFirstFrame : PlayerEvent
Emitted when the first frame of the current video is rendered onto the video surface.
ScalingModeChanged
Link copied to clipboard
data class ScalingModeChanged(from: ScalingMode, to: ScalingMode) : PlayerEvent
Emitted when the PlayerView.
Seek
Link copied to clipboard
data class Seek(from: SeekPosition, to: SeekPosition) : PlayerEvent
Emitted when the player starts seeking.
Seeked
Link copied to clipboard
class Seeked : PlayerEvent
Emitted when seeking has finished and data is available to continue playback.
StallEnded
Link copied to clipboard
class StallEnded : PlayerEvent
Emitted when the player ends stalling due to enough data being buffered.
StallStarted
Link copied to clipboard
class StallStarted : PlayerEvent
Emitted when the player begins to stall and to buffer due to an empty buffer.
TimeChanged
Link copied to clipboard
data class TimeChanged(time: Double) : PlayerEvent
Emitted when the current playback time has changed.
TimeShift
Link copied to clipboard
data class TimeShift(position: Double, target: Double) : PlayerEvent
Emitted when the player starts time shifting.
TimeShifted
Link copied to clipboard
class TimeShifted : PlayerEvent
Emitted when time shifting has finished and data is available to continue playback.
Unmuted
Link copied to clipboard
class Unmuted : PlayerEvent
Emitted when the player is unmuted.
VideoPlaybackQualityChanged
Link copied to clipboard
data class VideoPlaybackQualityChanged(oldVideoQuality: VideoQuality?, newVideoQuality: VideoQuality?) : PlayerEvent
Emitted when the current video playback quality has changed.
VideoSizeChanged
Link copied to clipboard
data class VideoSizeChanged(width: Int, height: Int, aspectRatio: Float) : PlayerEvent
Emitted when the current size of the video content has changed.
VrStereoChanged
Link copied to clipboard
data class VrStereoChanged(isStereo: Boolean) : PlayerEvent
Emitted when the VR stereo mode during playback of VR content changes.
VrViewingDirectionChange
Link copied to clipboard
class VrViewingDirectionChange : PlayerEvent
Emitted when the VR viewing direction changes.
VrViewingDirectionChanged
Link copied to clipboard
class VrViewingDirectionChanged : PlayerEvent
Emitted when the VR viewing direction did not change more than the specified threshold in the last interval, after the VrViewingDirectionChange event was triggered.
Warning
Link copied to clipboard
data class Warning(code: PlayerWarningCode, message: String) : PlayerEvent, WarningEvent
Emitted when a player warning occurred.

Inherited properties

timestamp
Link copied to clipboard
var timestamp: Long
The time at which the event was emitted.

Inheritors

PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard
PlayerEvent
Link copied to clipboard