webg3n icon indicating copy to clipboard operation
webg3n copied to clipboard

Test WebRTC as a streaming alternative

Open moethu opened this issue 6 years ago • 6 comments

https://webrtc.github.io/samples/

moethu avatar Sep 10 '19 08:09 moethu

https://github.com/webrtc/samples/blob/gh-pages/src/content/capture/canvas-video/index.html

moethu avatar Sep 10 '19 08:09 moethu

https://github.com/colek42/streamingDemo/tree/master/packetrecevier

moethu avatar Sep 10 '19 10:09 moethu

Hey @moethu

I suggest you use this golang lib. many people are using this for webrtc https://github.com/pion/webrtc

Are you wanting to render the screen as a video stream server side and stream it to the user ?

Or are you wanting to just use webrtc data channels to stream the images to the client ?

https://github.com/pion/ion

  • this is a great pub sub and rpc over webrtc lib

https://github.com/pion/rtwatch

  • this is a great example of streaming a video to users.

We are using alot of this in our project. Its really great.

grab me on Telegram ( gedw99)

winwisely99 avatar Nov 20 '19 10:11 winwisely99

@winwisely99 thanks for the input. that's really helpful. I wanted to use the video stream, will reach out to you once I'm working on this.

moethu avatar Nov 20 '19 16:11 moethu

some interesting references to implement this: https://github.com/poi5305/go-yuv2webRTC https://github.com/rviscarra/webrtc-remote-screen

moethu avatar Dec 28 '20 15:12 moethu

Hey! I'm late to the party, but I would love to help here! I already played around with the pion/webrtc library a little bit and I don't see any problem in adding this here. Streaming the data as a video as shown in the video-jmux branch but with WebRTC should work just fine. I will give it a go in the next few weeks.

janis-me avatar Dec 19 '21 12:12 janis-me