Currently, I'm seeking innovative approaches to achieve a low latency screen sharing feature using WebRTC but have hit a roadblock. Any assistance would be greatly valued!
At this moment, I am successfully able to capture and broadcast my Mac OS screen to localhost through FFmpeg. Subsequently, I retrieve the stream to display it on other devices within my network.
Below is the FFmpeg command line I use for capturing desktop video:
ffmpeg -f avfoundation -framerate 60 -capture_cursor 1 -i "1" -c:v h264_videotoolbox -realtime 1 -vsync 2 -b:v 5000k out777777.mp4
I'm contemplating if there exists a method to leverage WebRTC, specifically the datachannel technique, to enable a remote computer to access and play this UDP stream of my Desktop once two peers establish a connection via the Datachannel?
Your insights and suggestions are highly appreciated!