MediaSFU Shared
    Preparing search index...

    Function replaceProducerTrack

    • Swap the track on a live producer without renegotiating.

      This is the seamless path for switching camera, applying or removing a background effect, or moving between media sources: remote participants see no interruption, because the producer and its transport stay up.

      Parameters

      Returns Promise<HeadlessActionResult>

      const processed = applyBackgroundBlur(cameraTrack);
      await replaceProducerTrack({ parameters, track: processed });