Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Interface IPublicationMediaElementEngineEventData

    Used for various publication media element related events.

    interface IPublicationMediaElementEngineEventData {
        cancelable: boolean;
        currentTimeMs: number;
        defaultPrevented: boolean;
        durationMs: number;
        immediatePropagationStopped: boolean;
        isTrusted: boolean;
        mediaResource: IEngineEventMediaResourceData;
        objectType: EngineEventDataObjectType;
        propagationStopped: boolean;
        readerViewName: string;
        target: IEngineEventTargetData;
        type: keyof IEngineEventTypeMap;
    }

    Hierarchy (View Summary)

    Properties

    cancelable: boolean

    IF this event's default action is cancelable. See respective engine event for its definition of default action.

    currentTimeMs: number

    The current playback position in the media element, in milliseconds.

    defaultPrevented: boolean

    If this event's default action has been canceled/prevented by a call to preventDefault()

    durationMs: number

    The total duration of the media in milliseconds.

    immediatePropagationStopped: boolean

    True if stopImmediatePropagation() was called on this event.

    isTrusted: boolean

    If this event runs in a "trusted" context, i.e. the event callback is executed during a user-generated event such as "click" or "pointerdown".

    Contains additional information about the media resource and methods to access media content.

    The type of engine event object this JSON structure represents.

    PUBLICATION_MEDIA_ELEMENT_ENGINE_EVENT
    
    propagationStopped: boolean

    True if stopPropagation() was called on this event.

    readerViewName: string

    The name of the ReaderView this event is related to.

    Contains additional information about the element.

    The type of event.