MediaSFU Shared
    Preparing search index...

    Function captureCanvasStream

    • Captures or tears down a whiteboard canvas stream used for screen-style sharing.

      When starting, this helper captures the canvas at 30 FPS and ensures the correct screen transport is created or reconnected. When stopping, it ends all canvas tracks and disconnects the corresponding transport.

      Parameters

      Returns Promise<void>

      A promise that resolves after the whiteboard stream lifecycle step completes.