Package-level declarations

Contains all Bitmovin events and API to enable subscribing to those events.

Types

Link copied to clipboard
sealed class Event

Includes all possible events the Player, Source or OfflineContentManager can emit.

Link copied to clipboard

Manages subscriptions to specific Events and notifies those subscribers when such an event is being emitted. Subscribers can be simple function types in Kotlin or EventListener implementations in Java. There are also reified versions of the EventEmitter API to allow for convenient usage from Kotlin.

Link copied to clipboard
interface EventListener<E : Event?>
Used to represent event listeners when Kotlin lambdas can not be used to conveniently subscribe to events (e.g.
Link copied to clipboard
interface InfoEvent

The common supertype implemented by all different info events that are emitted by the Player or Source.

Link copied to clipboard
interface JavaEventEmitter<T : Event>

Provides EventEmitter functionality that is more convenient for Java usage.

Link copied to clipboard
sealed class OfflineEvent : Event
Link copied to clipboard
sealed class PlayerEvent : Event

Includes all possible events that only the Player can emit.

Link copied to clipboard
sealed class SourceEvent : Event

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

Functions

Link copied to clipboard
inline fun <E : Event> EventEmitter<Event>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextOfflineEvent")
inline fun <E : OfflineEvent> EventEmitter<OfflineEvent>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextPlayerEvent")
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextSourceEvent")
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.next(noinline action: (E) -> Unit)
Link copied to clipboard
inline fun <E : Event> EventEmitter<Event>.on(noinline action: (E) -> Unit)
@JvmName(name = "onOfflineEvent")
inline fun <E : OfflineEvent> EventEmitter<OfflineEvent>.on(noinline action: (E) -> Unit)
@JvmName(name = "onPlayerEvent")
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.on(noinline action: (E) -> Unit)
@JvmName(name = "onSourceEvent")
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.on(noinline action: (E) -> Unit)