Skip to main content
This guide covers screen sharing (desktop sharing) implementation using lib-jitsi-meet, including display capture, audio sharing, and screen-specific configurations.

Overview

Screen sharing in lib-jitsi-meet uses the getDisplayMedia 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

1

Check if screen sharing is supported

2

Request screen sharing

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

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.
Always listen for the LOCAL_TRACK_STOPPED event to update UI when user stops sharing:

Next Steps

Audio/Video Quality

Control encoding quality

Recording

Record conferences and screen shares