Interface CurrentSourceChangeEvent

Fired when the current source, which is chosen from ChromelessPlayer.source.sources, changes.

interface CurrentSourceChangeEvent {
    currentSource: undefined | TypedSource;
    date: Date;
    type: "currentsourcechange";
}

Hierarchy (view full)

  • Event<"currentsourcechange">
    • CurrentSourceChangeEvent

Properties

currentSource: undefined | TypedSource

The player's new current source.

date: Date

The creation date of the event.

type: "currentsourcechange"

The type of the event.