captureWhiteboardStream

open suspend override fun captureWhiteboardStream(shapesProvider: () -> List<Any>, useImageBackgroundProvider: () -> Boolean, width: Int, height: Int, frameRate: Int): MediaStream

Captures the whiteboard canvas as a video stream for recording. Similar to HTML Canvas's captureStream(30) API in web browsers.

This creates a WhiteboardVideoCapturer that renders whiteboard shapes to frames and outputs them as a WebRTC stream for sending to the backend.