Screenboard component provides a canvas for drawing, freehand drawing, erasing, and shape drawing.
It includes a toolbar for selecting drawing modes, colors, and line types.
Component
Example
import { Screenboard } from'mediasfu-reactjs';
// Define the parameters and functionality for the screenboard constparameters = { updateCanvasScreenboard: (canvas) =>console.log("Canvas updated:", canvas), annotateScreenStream:true, updateIsScreenboardModalVisible: (visible) =>console.log("Modal visibility:", visible), showAlert: (alertMessage) =>console.log("Alert:", alertMessage), sleep: ({ ms }) =>newPromise((resolve) =>setTimeout(resolve, ms)), updateAnnotateScreenStream: (state) =>console.log("Annotation state:", state), };
Screenboard component provides a canvas for drawing, freehand drawing, erasing, and shape drawing. It includes a toolbar for selecting drawing modes, colors, and line types.
Component
Example