eligius
    Preparing search index...

    Class RoutingController

    This is a work in progress, do not use this yet please....

    Hierarchy

    Index

    Constructors

    Properties

    eventbus: IEventbus | null = null
    eventListeners: TEventbusRemover[] = []
    name: string = 'RoutingController'
    navigation: any = null
    navLookup: Record<string, any> = {}
    navVidIdLookup: Record<string, any> = {}
    operationData: IRoutingControllerOperationData | null = null

    Methods

    • Register event listener with automatic binding and cleanup tracking

      Parameters

      • eventbus: IEventbus

        The eventbus to register with

      • eventName:
            | "before-request-timeline-uri"
            | "before-request-video-url"
            | "dom-mutation"
            | "highlight-navigation"
            | "language-change"
            | "navigate-to-video-url"
            | "push-history-state"
            | "request-action"
            | "request-current-language"
            | "request-current-navigation"
            | "request-current-timeline-position"
            | "request-current-video-position"
            | "request-engine-root"
            | "request-function"
            | "request-instance"
            | "request-label-collection"
            | "request-label-collections"
            | "request-timeline-cleanup"
            | "request-timeline-uri"
            | "request-video-cleanup"
            | "request-video-url"
            | "timeline-complete"
            | "timeline-container-request"
            | "timeline-current-timeline-change"
            | "timeline-duration"
            | "timeline-duration-request"
            | "timeline-firstframe"
            | "timeline-pause"
            | "timeline-pause-request"
            | "timeline-play"
            | "timeline-play-request"
            | "timeline-play-toggle-request"
            | "timeline-request-current-timeline"
            | "timeline-resize"
            | "timeline-resize-request"
            | "timeline-restart"
            | "timeline-seek"
            | "timeline-seek-request"
            | "timeline-seeked"
            | "timeline-stop"
            | "timeline-stop-request"
            | "timeline-time"
            | "video-complete"

        Name of the event to listen for

      • handler: (...args: any[]) => void

        Event handler function (will be bound to this controller)

      Returns void

    • Register multiple event listeners at once

      Parameters

      • eventbus: IEventbus

        The eventbus to register with

      • listeners: { eventName: string; handler: (...args: any[]) => void }[]

        Array of {eventName, handler} pairs

      Returns void