Vinyl
    Preparing search index...

    Interface TrackControllerEventMap<TrackLoadOptionsType>

    interface TrackControllerEventMap<TrackLoadOptionsType extends TrackLoadOptions> {
        currentTrackChange: ChangeEvent<null | ReadonlyTrack>;
        currentTrackChanging: ChangeEvent<null | ReadonlyTrack>;
        queueChange: ChangeEvent<readonly TrackLoadOptionsType[]>;
        queueEnded: AnyRecord;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    currentTrackChange: ChangeEvent<null | ReadonlyTrack>

    Emitted when the current track has changed. If there is a queue change, the currentTrackChange event is always emitted first. This is emitted after the previous track has been deactivated and new track has been activated.

    currentTrackChanging: ChangeEvent<null | ReadonlyTrack>

    Emitted when the current track is changing. This is emitted before the previous track has been deactivated and new track has been activated.

    queueChange: ChangeEvent<readonly TrackLoadOptionsType[]>

    Dispatched when the queue has changed.

    queueEnded: AnyRecord

    Emitted when the last track of the playback queue has ended. When the last track in a queue has ended, the track will not change and therefore a currentTrackChange event will not be emitted.