SourceEvent

sealed class SourceEvent : Event

Includes all possible events that the Source or Player can emit.

Types

AudioAdded
Link copied to clipboard
data class AudioAdded(audioTrack: AudioTrack, time: Double) : SourceEvent
Emitted when an AudioTrack is added.
AudioChanged
Link copied to clipboard
data class AudioChanged(oldAudioTrack: AudioTrack?, newAudioTrack: AudioTrack?) : SourceEvent
Emitted when the selected AudioTrack changed.
AudioDownloadQualityChanged
Link copied to clipboard
data class AudioDownloadQualityChanged(oldAudioQuality: AudioQuality?, newAudioQuality: AudioQuality?) : SourceEvent
Emitted when the current audio download quality has changed.
AudioQualityChanged
Link copied to clipboard
data class AudioQualityChanged(oldAudioQuality: AudioQuality?, newAudioQuality: AudioQuality?) : SourceEvent
Emitted when the selected audio quality has changed.
AudioRemoved
Link copied to clipboard
data class AudioRemoved(audioTrack: AudioTrack, time: Double) : SourceEvent
Emitted when an audio track is removed.
DownloadFinished
Link copied to clipboard
data class DownloadFinished(downloadType: HttpRequestType, url: String, lastRedirectLocation: String?, downloadTime: Double, httpStatus: Int, size: Long, isSuccess: Boolean) : SourceEvent
Emitted when a download was finished.
DrmDataParsed
Link copied to clipboard
data class DrmDataParsed(data: DrmData) : SourceEvent
Emitted when Widevine PSSH boxes are parsed in an HLS manifest
DurationChanged
Link copied to clipboard
data class DurationChanged(from: Double, to: Double) : SourceEvent
Emitted when the source duration has changed.
Error
Link copied to clipboard
data class Error(code: SourceErrorCode, message: String, data: Any?) : SourceEvent, ErrorEvent
Emitted when a source error occurred.
Load
Link copied to clipboard
data class Load(source: Source) : SourceEvent
Emitted when a Source starts loading.
Loaded
Link copied to clipboard
data class Loaded(source: Source) : SourceEvent
Emitted when a Source was loaded.
MetadataParsed
Link copied to clipboard
data class MetadataParsed(metadata: Metadata, type: String) : SourceEvent
Emitted when metadata is first seen and parsed.
SubtitleAdded
Link copied to clipboard
data class SubtitleAdded(subtitleTrack: SubtitleTrack) : SourceEvent
Emitted when a new SubtitleTrack is added.
SubtitleChanged
Link copied to clipboard
data class SubtitleChanged(oldSubtitleTrack: SubtitleTrack?, newSubtitleTrack: SubtitleTrack?) : SourceEvent
Emitted when the selected SubtitleTrack changed.
SubtitleRemoved
Link copied to clipboard
data class SubtitleRemoved(subtitleTrack: SubtitleTrack) : SourceEvent
Emitted when an external SubtitleTrack has been removed so it is possible to update the controls accordingly.
Unloaded
Link copied to clipboard
class Unloaded : SourceEvent
Emitted when a Source was unloaded.
VideoDownloadQualityChanged
Link copied to clipboard
data class VideoDownloadQualityChanged(oldVideoQuality: VideoQuality?, newVideoQuality: VideoQuality?) : SourceEvent
Emitted when current video download quality has changed.
VideoQualityChanged
Link copied to clipboard
data class VideoQualityChanged(oldVideoQuality: VideoQuality, newVideoQuality: VideoQuality) : SourceEvent
Emitted when the video quality has changed.
Warning
Link copied to clipboard
data class Warning(code: SourceWarningCode, message: String) : SourceEvent, WarningEvent
Emitted when a source warning occurred.

Inherited properties

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

Inheritors

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