Documentation
    Preparing search index...

    Function mountMediaPlayer

    • Mount accessible host controls for all media sessions, including video output. The panel is hidden when empty and collapsible while playback continues.

      Parameters

      • service: MediaService

        Media service owning playback and session commands.

      • container: HTMLElement = document.body

        Host container; defaults to document.body.

      Returns () => void

      Cleanup for the UI subscription and mounted panel.

      const unmount = mountMediaPlayer(media);
      // On host teardown: unmount(); media.destroy();