Types

Link copied to clipboard
data class AudioAdded(val audioTrack: AudioTrack, val time: Double) : SourceEvent

Emitted when an AudioTrack is added.

Link copied to clipboard
data class AudioChanged(val oldAudioTrack: AudioTrack?, val newAudioTrack: AudioTrack?) : SourceEvent

Emitted when the selected AudioTrack changed.

Link copied to clipboard
data class AudioDownloadQualityChanged(val oldAudioQuality: AudioQuality?, val newAudioQuality: AudioQuality?) : SourceEvent

Emitted when the current audio download quality has changed.

Link copied to clipboard
data class AudioQualitiesChanged(val oldAudioQualities: List<AudioQuality>, val newAudioQualities: List<AudioQuality>) : SourceEvent

Emitted when the Source.availableAudioQualities changed.

Link copied to clipboard
data class AudioQualityAdded(val audioQuality: AudioQuality) : SourceEvent

Emitted when an AudioQuality has been added to the source.

Link copied to clipboard
data class AudioQualityChanged(val oldAudioQuality: AudioQuality?, val newAudioQuality: AudioQuality?) : SourceEvent

Emitted when the selected audio quality has changed.

Link copied to clipboard
data class AudioQualityRemoved(val audioQuality: AudioQuality) : SourceEvent

Emitted when an AudioQuality has been removed from the source.

Link copied to clipboard
data class AudioRemoved(val audioTrack: AudioTrack, val time: Double) : SourceEvent

Emitted when an audio track is removed.

Link copied to clipboard
data class AudioTrackAdded(val audioTrack: AudioTrack) : SourceEvent

Emitted when an AudioTrack is added.

Link copied to clipboard
data class AudioTrackChanged(val oldAudioTrack: AudioTrack?, val newAudioTrack: AudioTrack?) : SourceEvent

Emitted when the selected AudioTrack changed.

Link copied to clipboard
data class AudioTrackRemoved(val audioTrack: AudioTrack) : SourceEvent

Emitted when an AudioTrack is removed.

Link copied to clipboard
data class AudioTracksChanged(val oldAudioTracks: List<AudioTrack>, val newAudioTracks: List<AudioTrack>) : SourceEvent

Emitted when the Source.availableAudioTracks changed.

Link copied to clipboard
data class DownloadFinished(val downloadType: HttpRequestType, val url: String, val lastRedirectLocation: String?, val downloadTime: Double, val httpStatus: Int, val size: Long, val isSuccess: Boolean) : SourceEvent

Emitted when a download was finished.

Link copied to clipboard
data class DrmDataParsed(val data: DrmData) : SourceEvent

Emitted when Widevine PSSH boxes are parsed in an HLS manifest

Link copied to clipboard
data class DurationChanged(val from: Double, val to: Double) : SourceEvent

Emitted when the source duration has changed. Not emitted for the initial duration.

Link copied to clipboard
data class Error(val code: SourceErrorCode, val message: String, val data: Any? = null) : SourceEvent, ErrorEvent

Emitted when a source error occurred.

Link copied to clipboard
data class Info(val message: String) : SourceEvent, InfoEvent

Emitted for neutral information provided by the source. The information provided with this event is only for analytical purposes and are subject to change. Thus, neither the timing nor the content should be used to trigger workflows, but may be used for logging.

Link copied to clipboard
data class Load(val source: Source) : SourceEvent

Emitted when a Source starts loading.

Link copied to clipboard
data class Loaded(val source: Source) : SourceEvent

Emitted when a Source was loaded. This does not mean that the source is immediately ready for playback.

Link copied to clipboard
data class MetadataParsed(val metadata: Metadata, val type: String) : SourceEvent

Emitted when metadata is first seen and parsed.

Link copied to clipboard
data class PeriodChanged(val from: PeriodData?, val to: PeriodData) : SourceEvent

Emitted when the active period in a DASH stream was changed.

Link copied to clipboard
data class SubtitleAdded(val subtitleTrack: SubtitleTrack) : SourceEvent

Emitted when a new SubtitleTrack is added.

Link copied to clipboard
data class SubtitleChanged(val oldSubtitleTrack: SubtitleTrack?, val newSubtitleTrack: SubtitleTrack?) : SourceEvent

Emitted when the selected SubtitleTrack changed.

Link copied to clipboard
data class SubtitleRemoved(val subtitleTrack: SubtitleTrack) : SourceEvent

Emitted when a SubtitleTrack is removed.

Link copied to clipboard
data class SubtitleTrackAdded(val subtitleTrack: SubtitleTrack) : SourceEvent

Emitted when a new SubtitleTrack is added.

Link copied to clipboard
data class SubtitleTrackChanged(val oldSubtitleTrack: SubtitleTrack?, val newSubtitleTrack: SubtitleTrack?) : SourceEvent

Emitted when the selected SubtitleTrack changed.

Link copied to clipboard
data class SubtitleTrackRemoved(val subtitleTrack: SubtitleTrack) : SourceEvent

Emitted when a SubtitleTrack is removed.

Link copied to clipboard
data class SubtitleTracksChanged(val oldSubtitleTracks: List<SubtitleTrack>, val newSubtitleTracks: List<SubtitleTrack>) : SourceEvent

Emitted when the Source.availableSubtitleTracks changed.

Link copied to clipboard

Emitted when a Source was unloaded.

Link copied to clipboard
data class VideoDownloadQualityChanged(val oldVideoQuality: VideoQuality?, val newVideoQuality: VideoQuality?) : SourceEvent

Emitted when current video download quality has changed.

Link copied to clipboard
data class VideoQualitiesChanged(val oldVideoQualities: List<VideoQuality>, val newVideoQualities: List<VideoQuality>) : SourceEvent

Emitted when the Source.availableVideoQualities changed.

Link copied to clipboard
data class VideoQualityAdded(val videoQuality: VideoQuality) : SourceEvent

Emitted when a VideoQuality has been added to the source.

Link copied to clipboard
data class VideoQualityChanged(val oldVideoQuality: VideoQuality, val newVideoQuality: VideoQuality) : SourceEvent

Emitted when the selected video quality has changed.

Link copied to clipboard
data class VideoQualityRemoved(val videoQuality: VideoQuality) : SourceEvent

Emitted when a VideoQuality has been removed from the source.

Link copied to clipboard
data class Warning(val code: SourceWarningCode, val message: String) : SourceEvent, WarningEvent

Emitted when a source warning occurred.