Skip to main content
The whiteboard in a meeting is an embedded H5 page (iframe). Stroke sync goes through the whiteboard’s own connection and produces no media streams. On top of that, the meeting layer does one more thing: it manages the “who is sharing the whiteboard right now” status for you, so you don’t have to broadcast it yourself as you would at the SRTC layer.
The whiteboard page’s own capabilities (URL parameters, hiding menus, desktop annotation mode, when it’s destroyed) are exactly the same as at the SRTC layer; see SRTC · Whiteboard. This page only covers how usage differs at the meeting layer.

Get the whiteboard URL

You can read it once you’ve entered the meeting. The SDK has already appended the authorization code, so embed it directly:
Whiteboards map one-to-one to meetings—everyone in the same meeting opens the same board. The URL becomes invalid after you exit the meeting.

Start and stop sharing

Whiteboard sharing only broadcasts a status; it doesn’t capture any video:
Only one member in a meeting can share at a time, and screen sharing and the whiteboard are mutually exclusive. When the host has turned on “sharing disabled for the room”, a call from a regular member throws an error.

Respond to someone else’s whiteboard sharing

When someone else opens the whiteboard, you receive a room event; use it to show the whiteboard:
Members who enter mid-meeting don’t receive this event, so check once yourself—the meeting info carries the current sharing status:
share_state values: 0 no sharing, 1 screen sharing, 2 whiteboard; the sharer is share_uid.
  • SRTC · Whiteboard—whiteboard page URL parameters, embedding in native apps, lifecycle, and destruction
  • Events—full definitions of the sharing-related events
  • SMeeting—method signatures