Overview
Screen sharing in lib-jitsi-meet uses thegetDisplayMedia API and provides cross-platform support for:
- Full desktop sharing: Share entire screen
- Window sharing: Share specific application window
- Tab sharing: Share browser tab (Chromium-based browsers)
- System audio: Capture system audio along with screen (Chrome 104+)
Creating a Screen Share Track
Configuration Options
Frame Rate Settings
Resolution Settings
Advanced Settings
Screen Sharing with Audio
Capture System Audio (Chrome 104+)
Audio Quality Settings
Managing Screen Share Tracks
Detect Screen Share
Handle Track Ended
Screen share tracks automatically end when user stops sharing:Stop Screen Sharing Programmatically
Content Hint
Optimize encoding based on content type:Platform-Specific Implementation
Chrome/Chromium
Firefox
Safari
Electron
Advanced Use Cases
Replace Camera with Screen Share
Share Camera and Screen Simultaneously
Dynamic Frame Rate Adjustment
Error Handling
Best Practices
Optimize frame rate for content type
Optimize frame rate for content type
Use low frame rates (5 fps) for static content like presentations and documents. Use higher frame rates (15-30 fps) for video playback or animations.
Handle track stopped event
Handle track stopped event
Always listen for the LOCAL_TRACK_STOPPED event to update UI when user stops sharing:
Check browser capabilities
Check browser capabilities
Next Steps
Audio/Video Quality
Control encoding quality
Recording
Record conferences and screen shares