PlayerEvent

sealed class PlayerEvent : Event

Includes all possible events that only the Player can emit.

Types

Link copied to clipboard
class Active : PlayerEvent

Emitted when a playback session was started. This event is emitted immediately after the load call und does not wait for actual data to be loaded.

Link copied to clipboard
data class AdBreakFinished(adBreak: AdBreak?) : PlayerEvent

Emitted when an ad break has finished.

Link copied to clipboard
data class AdBreakStarted(adBreak: AdBreak?) : PlayerEvent

Emitted when an ad break has started.

Link copied to clipboard
data class AdClicked(clickThroughUrl: String?) : PlayerEvent

Emitted when an ad was clicked.

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.

Link copied to clipboard
data class AdFinished(ad: Ad?) : PlayerEvent

Emitted when an ad has finished playback.

Link copied to clipboard
data class AdLinearityChanged(isLinear: Boolean) : PlayerEvent

Emitted when the linearity of a VPAID ad changes.

Link copied to clipboard
data class AdManifestLoad(adConfig: AdConfig, adBreak: AdBreak?) : PlayerEvent

Emitted when the download of an ad manifest is started.

Link copied to clipboard
data class AdManifestLoaded(adConfig: AdConfig, adBreak: AdBreak?, downloadTime: Long) : PlayerEvent

Emitted when an ad manifest was successfully loaded.

Link copied to clipboard
data class AdQuartile(quartile: AdQuartile) : PlayerEvent

Emitted when the playback of an ad has progressed over a quartile boundary.

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.

Link copied to clipboard
data class AdSkipped(ad: Ad?) : PlayerEvent

Emitted when an ad was skipped.

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.

Link copied to clipboard
data class AudioPlaybackQualityChanged(oldAudioQuality: AudioQuality?, newAudioQuality: AudioQuality?) : PlayerEvent

Emitted when the current audio playback quality has changed.

Link copied to clipboard
class CastAvailable : PlayerEvent

Emitted when casting to a cast-compatible device is available.

Link copied to clipboard
class CastPaused : PlayerEvent

Emitted when the playback on a cast-compatible device was paused.

Link copied to clipboard
class CastPlaybackFinished : PlayerEvent

Emitted when the playback on a cast-compatible device has finished.

Link copied to clipboard
class CastPlaying : PlayerEvent

Emitted when playback on a cast-compatible device has started.

Link copied to clipboard
class CastStart : PlayerEvent

Emitted when casting is initiated, but the user still needs to choose which device should be used.

Link copied to clipboard
data class CastStarted(deviceName: String?) : PlayerEvent

Emitted when the cast app is launched successfully.

Link copied to clipboard
class CastStopped : PlayerEvent

Emitted when casting to a cast-compatible device is stopped.

Link copied to clipboard
class CastTimeUpdated : PlayerEvent

Emitted when the time update from the currently used cast-compatible device is received.

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.

Link copied to clipboard
data class CueEnter(cue: Cue) : PlayerEvent

Emitted when a subtitle cue transitions into the active status.

Link copied to clipboard
data class CueExit(cue: Cue) : PlayerEvent

Emitted when an active subtitle cue transitions into the inactive status.

Link copied to clipboard
class Destroy : PlayerEvent

Emitted when the player was destroyed.

Link copied to clipboard
data class DroppedVideoFrames(droppedFrames: Int, elapsedTime: Double) : PlayerEvent

Emitted when video frames have been dropped.

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.

Link copied to clipboard
data class Error(code: PlayerErrorCode, message: String, data: Any?) : PlayerEvent, ErrorEvent

Emitted when a player error occurred.

Link copied to clipboard
class FullscreenDisabled : PlayerEvent

Emitted when the fullscreen functionality has been disabled.

Link copied to clipboard
class FullscreenEnabled : PlayerEvent

Emitted when the fullscreen functionality has been enabled.

Link copied to clipboard
class FullscreenEnter : PlayerEvent

Emitted when the player enters fullscreen mode.

Link copied to clipboard
class FullscreenExit : PlayerEvent

Emitted when the player exits fullscreen mode.

Link copied to clipboard
data class Impression(data: ImpressionData) : PlayerEvent

Emitted when an impression call succeeded.

Link copied to clipboard
class Inactive : PlayerEvent

Emitted when the active playback session was stopped.

Link copied to clipboard
data class LicenseValidated(data: LicenseData) : PlayerEvent

Emitted when a licensing call succeeded.

Link copied to clipboard
data class Metadata(metadata: Metadata, type: String) : PlayerEvent

Emitted when metadata (e.g. Id3Frame in HLS and EventMessage in DASH) is encountered.

Link copied to clipboard
class Muted : PlayerEvent

Emitted when the player is muted on either the local device or on a cast-compatible device.

Link copied to clipboard
data class Paused(time: Double) : PlayerEvent

Emitted when the player is paused.

Link copied to clipboard
data class PictureInPictureAvailabilityChanged(isPictureInPictureAvailable: Boolean) : PlayerEvent

Emitted when the availability of the Picture-in-Picture mode changed.

Link copied to clipboard
class PictureInPictureEnter : PlayerEvent

Emitted when the player enters Picture-In-Picture mode.

Link copied to clipboard
class PictureInPictureExit : PlayerEvent

Emitted when the player exits Picture-In-Picture mode.

Link copied to clipboard
data class Play(time: Double) : PlayerEvent

Emitted when the player receives an intention to play (i.e Player.play).

Link copied to clipboard
class PlaybackFinished : PlayerEvent

Emitted when playback of the Source has finished. If multiple sources are loaded into the player via a PlaylistConfig, the event is emitted when playback of the last Source in the playlist finished.

Link copied to clipboard
data class Playing(time: Double) : PlayerEvent

Emitted when the player enters the playing state after calling Player.play.

Link copied to clipboard
data class PlaylistTransition(from: Source, to: Source) : PlayerEvent

Emitted when the player transitions between two sources in a playlist.

Link copied to clipboard
class Ready : PlayerEvent

Emitted when the player is ready to play and to handle API calls.

Link copied to clipboard
class RenderFirstFrame : PlayerEvent

Emitted when the first frame of the current video is rendered onto the video surface.

Link copied to clipboard
data class ScalingModeChanged(from: ScalingMode, to: ScalingMode) : PlayerEvent

Emitted when the PlayerView.getScalingMode is changed.

Link copied to clipboard
data class Seek(from: SeekPosition, to: SeekPosition) : PlayerEvent

Emitted when the player starts seeking. Only applies to VoD streams. Refer to TimeShift for live streams.

Link copied to clipboard
class Seeked : PlayerEvent

Emitted when seeking has finished and data is available to continue playback. Only applies to VoD streams. Refer to TimeShifted for live streams.

Link copied to clipboard
data class SourceAdded(source: Source, index: Int) : PlayerEvent

Emitted when a Source was added to an active playback session.

Link copied to clipboard
data class SourceRemoved(source: Source, index: Int) : PlayerEvent

Emitted when a Source was removed from an active playback session.

Link copied to clipboard
class StallEnded : PlayerEvent

Emitted when the player ends stalling due to enough data being buffered.

Link copied to clipboard
class StallStarted : PlayerEvent

Emitted when the player begins to stall and to buffer due to an empty buffer.

Link copied to clipboard
data class TimeChanged(time: Double) : PlayerEvent

Emitted when the current playback time has changed.

Link copied to clipboard
data class TimeShift(position: Double, target: Double) : PlayerEvent

Emitted when the player starts time shifting. Only applies to live streams. Refer to Seek for VoD streams.

Link copied to clipboard
class TimeShifted : PlayerEvent

Emitted when time shifting has finished and data is available to continue playback. Only applies to live streams. Refer to Seeked for VoD streams.

Link copied to clipboard
class Unmuted : PlayerEvent

Emitted when the player is unmuted on either the local device or on a cast-compatible device.

Link copied to clipboard
data class VideoPlaybackQualityChanged(oldVideoQuality: VideoQuality?, newVideoQuality: VideoQuality?) : PlayerEvent

Emitted when the current video playback quality has changed.

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.

Link copied to clipboard
data class VrStereoChanged(isStereo: Boolean) : PlayerEvent

Emitted when the VR stereo mode during playback of VR content changes.

Link copied to clipboard
class VrViewingDirectionChange : PlayerEvent

Emitted when the VR viewing direction changes. The minimal interval between two consecutive event callbacks is specified through VrConfig.viewingDirectionChangeEventInterval.

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. The threshold can be set through setVRViewingDirectionChangeThreshold.

Link copied to clipboard
data class Warning(code: PlayerWarningCode, message: String) : PlayerEvent, WarningEvent

Emitted when a player warning occurred.

Inheritors

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