WebRTC samples
getDisplayMedia
Start
Advanced options
Show default sharing options
Prefer to share a browser tab
Prefer to share a window
Prefer to share an entire screen
Display the screensharing stream from
getDisplayMedia()
in a video element.
View source on GitHub