eligius
    Preparing search index...

    Class EligiusEngine

    The Eligius timeline engine with explicit, testable API.

    This engine is responsible for starting and stopping the given timeline provider and triggering the actions associated with positions along the timeline.

    Implements

    Index

    Constructors

    Accessors

    • get playState(): "playing" | "paused" | "stopped"

      Current playback state (derived from position source state)

      Returns "playing" | "paused" | "stopped"

    Methods

    • Cleans up all the necessary parts that the engine initialized.

      • It ends the currently active operations and the init actions.
      • It removes all its eventbus listeners, handlers and interceptors.
      • It destroys all of its timeline providers
      • It empties the HTML element indicated by the containerSelector configuration property.

      Returns Promise<void>

    • Seek to a specific position

      Parameters

      • position: number

        Target position in seconds

      Returns Promise<number>

      Actual position after seek

    • Switch to a different timeline

      Parameters

      • uri: string

        Timeline URI to switch to

      • position: number = 0

        Optional starting position

      Returns Promise<void>

    • Parameters

      • actions: ActionMethod[]

      Returns ActionMethod[]

    • Parameters

      • timelines: Record<number, ActionMethod[]>[]

      Returns void