ScreenboardModal - A modal component for managing screen annotation and drawing overlays.
This component provides an interactive interface for controlling screen annotation features during
screen sharing sessions. It manages the annotation stream lifecycle, canvas handling, transport
creation, and synchronization with the screen sharing infrastructure.
Key Features:
Annotation Toggle: Enable/disable drawing annotations on shared screen with real-time updates
Stream Management: Handles local screen stream, processed stream, and annotation canvas streams
Canvas Integration: Manages mainScreenCanvas and canvasScreenboard for annotation rendering
Transport Lifecycle: Creates, connects, and disconnects WebRTC transport for annotation streams
Screen Producer Control: Manages screen producer for annotation stream broadcasting
Async Operations: Proper sleep/delay handling for stream transitions
User Media Sync: Prepopulates user media when annotation state changes
Host Indicators: Displays host label for session context
Shared State Awareness: Tracks shared/unshared states for proper annotation behavior
Modal Controls: Close button with automatic canvas cleanup and transport disconnection
Flexible Positioning: Configurable modal position (topRight, topLeft, bottomRight, bottomLeft)
Responsive Design: Auto-sizing based on content with overlay behavior
ScreenboardModal - A modal component for managing screen annotation and drawing overlays.
This component provides an interactive interface for controlling screen annotation features during screen sharing sessions. It manages the annotation stream lifecycle, canvas handling, transport creation, and synchronization with the screen sharing infrastructure.
Key Features:
Component
Example
// Basic usage for screen annotation
Example
// Custom styled with position control
Example
// Analytics tracking for annotation usage
Example
// Integration with MediasfuGeneric using uiOverrides