eligius
    Preparing search index...

    Interface IContainerProvider

    Interface for providing the DOM container where content is rendered.

    The container is where operations render their output (elements, animations, etc.). For some sources (video), the container is intrinsic. For others (WebSocket), the container is a separate concern configured independently.

    containerProvider.onContainerReady(() => {
    const $container = containerProvider.getContainer();
    $container?.append('<div class="content">Loaded!</div>');
    });
    interface IContainerProvider {
        getContainer(): JQuery<HTMLElement> | undefined;
        onContainerReady(callback: () => void): void;
    }

    Implemented by

    Index

    Methods

    • Get the container element.

      Returns JQuery<HTMLElement> | undefined

      jQuery-wrapped container element, or undefined if not available

    • Register a callback for when the container is ready.

      Called once when the container becomes available and ready for content. For video sources, this corresponds to the first frame. For DOM containers, this is called after the element is found/created.

      Parameters

      • callback: () => void

        Function called when container is ready

      Returns void