Bitmovin Player API 8.268.0
    Preparing search index...

    Interface StaticPlayerAPI

    The static interface of the Bitmovin Player API class that is either available through the global [window.]bitmovin.player.Player namespace or imported as AMD module. The static API provides the constructor for player instances and other static fields as documented.

    interface StaticPlayerAPI {
        new StaticPlayerAPI(
            containerElement: HTMLElement,
            config: PlayerConfig,
        ): PlayerAPI;
        version: string;
        addModule(moduleDefinition: any): void;
        getModules(): ModuleName[];
        removeModule(name: ModuleName): void;
    }
    Index
    • Creates a new player instance.

      Parameters

      • containerElement: HTMLElement

        the DOM element container for the player

      • config: PlayerConfig

        the player configuration

      Returns PlayerAPI

      the player instance

    version: string

    The version number of the player.

    • Adds a module into the player.

      Parameters

      • moduleDefinition: any

        the module object which should be added to the player

      Returns void

    • Removes a module from the player.

      Parameters

      • name: ModuleName

        the module name which should be removed from the player.

      Returns void