Value:
null when no whiteboard session is active.startWhiteboard() has been called.import React from "react";
import { useWhiteboard } from "@videosdk.live/react-sdk";
function WhiteboardComponent() {
const { whiteboardUrl } = useWhiteboard();
return (
<div>
{whiteboardUrl && (
<iframe src={whiteboardUrl} width="800" height="600"></iframe>
)}
</div>
);
}
export default WhiteboardComponent;
useWhiteboardprovides APIs to start, stop, and access a collaborative whiteboard session within a meeting.