WebRTC-iOS icon indicating copy to clipboard operation
WebRTC-iOS copied to clipboard

Stream local screen

Open iAkashlal opened this issue 5 years ago • 5 comments

This thread is more of a suggestion request than an issue. I am trying to make a teamviewer Pilot-type application where I can stream my screen to another person so that he can see it. I see you are hooking the camera feed directly, what would you recommend to stream screen instead?

I am thinking of recording the screen to a local file in bundle and using RTCFileVideoCapturer's startCapturing with the file name to capture the screen and send it over to another person at the same time.

Am I overseeing a more efficient way?

iAkashlal avatar Apr 08 '20 11:04 iAkashlal

Hey @iAkashlal That's a very interesting addition. Unfortunately I don't have any experience with RPScreenRecorder or ReplayKit. I would try to investigate how to connect the screen capture stream buffer to one of the WebRTC media sources. If you find any working solution, let me know! I might add this to the demo project

stasel avatar Apr 10 '20 12:04 stasel

Sure thing @stasel , will investigate this for a few days and update here :)

iAkashlal avatar Apr 10 '20 13:04 iAkashlal

Any update on this? I'm trying to do the same thing, but can't seem to see the stream on the second device. It is appearing in the local view of the first device so not sure whats going on.

dindin44 avatar Aug 18 '20 11:08 dindin44

i'm facing with same problem, currently i can screen share beetween 2 device (iphone) with WebRTC on foreground use ReplayKit, but can't do it on background, i'm try investigate and got a solution use Broadcast Upload Extension to get Local Screen but i don't know how to stream that to WebRTC cause this code located in Extension File, it's don't have config like WebRTCClient (peer, track, videosource...), any ideal for it ?

ngoctamcb avatar Oct 15 '20 02:10 ngoctamcb

any solution TT?

Bhoon-coding avatar Jul 25 '23 08:07 Bhoon-coding