Mount accessible host controls for all media sessions, including video output. The panel is hidden when empty and collapsible while playback continues.
Media service owning playback and session commands.
Host container; defaults to document.body.
Cleanup for the UI subscription and mounted panel.
const unmount = mountMediaPlayer(media);// On host teardown: unmount(); media.destroy(); Copy
const unmount = mountMediaPlayer(media);// On host teardown: unmount(); media.destroy();
Mount accessible host controls for all media sessions, including video output. The panel is hidden when empty and collapsible while playback continues.