MediaSFU Shared
    Preparing search index...

    Function produceElement

    • Publish a playing <video> or <audio> element — media co-watching, a pre-recorded intro, background music, an HLS or MP4 source.

      The element must actually be playing: a paused element captures no frames, and browsers block autoplay with audio until the user has interacted with the page.

      Parameters

      Returns Promise<HeadlessActionResult & { stream: MediaStream | null }>

      const el = document.querySelector('video')!;
      await el.play();
      await produceElement({ parameters, element: el });