MediaSFU Shared
    Preparing search index...

    Function stopProducing

    • Tear down one of your producers without touching the others.

      clickVideo/clickAudio toggle capture and transport together. When you published a custom stream you usually want to stop only the transport and keep owning the stream (to swap sources without a visible gap, for example).

      Parameters

      Returns Promise<HeadlessActionResult>

      await stopProducing({ parameters, kind: 'video' });
      await produceMedia({ parameters, stream: canvasStream, kind: 'video' });