THEOplayer Web SDK
    Preparing search index...

    Interface RepresentationChangeEvent

    Fired when the current representation changes.

    interface RepresentationChangeEvent {
        date: Date;
        previousRepresentation: undefined | Representation;
        representation: undefined | Representation;
        type: "representationchange";
    }

    Hierarchy (View Summary)

    • Event<"representationchange">
      • RepresentationChangeEvent
    Index

    Properties

    date: Date

    The creation date of the event.

    previousRepresentation: undefined | Representation

    The player's previous representation.

    representation: undefined | Representation

    The player's current representation.

    type: "representationchange"

    The type of the event.