Hacker News new | ask | show | jobs
by jqpabc123 1876 days ago
Anyone have something similar for screen sharing?
4 comments

Instead of `getUserMedia` replace with `getDisplayMedia`.

If you are looking for a native option use [0] or [1] and you can send anything from ffmpeg to webrtc. ffmpeg itself doesn't support WebRTC so need to use something for the last part.

[0] https://github.com/rviscarra/webrtc-remote-screen

[1] https://github.com/pion/webrtc/tree/master/examples/rtp-to-w...

Here’s a similar project I did w/screenshare

https://github.com/ted-piotrowski/ted-piotrowski.github.io

Stream screen to webrtc via ffmpeg
Thanks for all the replies.