Tutorial about WebRTC? (sharing screen + SFU)

365 views
Skip to first unread message

Sebastien Binet

unread,
Dec 6, 2021, 9:39:15 AM12/6/21
to golang-nuts
hi there,

for $REASONS (more or less explained below), I am trying
to create a little application that would:

- serve an end-point where users could share their screen (browser tab,
browser or whole screen)
- serve another end-point where a dedicated RPi would navigate and
display the shared screen to a video-projector.

From this use-case, and as I want this to be done in Go as much as
possible, I suspect I will need to:

- create a web server on machine1 to expose the 2 end-points described
above, (with perhaps a bit of JS to present them?)
- create an SFU (with pion?) that will relay the video stream between
the user and the RPi.

I'll probably won't need a TURN server this will all happen on the same
network.

am I on the right track?

does the collective knowledge of this list has a few tutorials that
could get me started on this?
(I am relatively ignorant in WebRTC as a whole)

So far, here is the list of input material I have gathered:

https://scribe.rip/@hparein/data-stream-from-your-webcam-and-microphone-videochat-with-javascript-step-1-29895b70808b
https://scribe.rip/@hparein/set-up-a-connection-over-websocket-videochat-with-javascript-step-2-f78c307c4fd3
https://scribe.rip/@hparein/establishing-the-webrtc-connection-videochat-with-javascript-step-3-48d4ae0e9ea4
https://scribe.rip/@hparein/find-your-contact-videochat-with-javascript-step-4-4d527576b8cf
https://scribe.rip/@hparein/share-your-screen-with-webrtc-video-call-with-webrtc-step-5-b3d7890c8747
https://scribe.rip/@ramezemadaiesec/from-zero-to-fully-functional-video-conference-app-using-go-and-webrtc-7d073c9287da
https://viscarra.dev/post/webrtc-remote-screen/
https://gabrieltanner.org/blog/broadcasting-ion-sfu

thanks for any pointers,
-s

PS: also posted there on reddit
https://www.reddit.com/r/golang/comments/ra8ptj/tutorial_about_webrtc_sharing_screen_sfu/

Jason E. Aten

unread,
Dec 10, 2021, 2:34:16 AM12/10/21
to golang-nuts
Hi Sebastien,

Might be too old; but chrome has/had some interesting debugging tools:

https://webrtchacks.com/hangout-analysis-philipp-hancke/

also, just in case it didn't come to mind... and you need a solution today... Google Hangouts is free. But you probably knew that :)

- J

Sebastien Binet

unread,
Dec 10, 2021, 4:49:00 AM12/10/21
to Jason E. Aten, golang-nuts
Jason,

On Fri Dec 10, 2021 at 08:34 CET, Jason E. Aten wrote:
> Hi Sebastien,
>
> Might be too old; but chrome has/had some interesting debugging tools:
>
> https://webrtchacks.com/hangout-analysis-philipp-hancke/

thanks for the pointer.
a bit old, but educative still.

> also, just in case it didn't come to mind... and you need a solution
> today... Google Hangouts is free. But you probably knew that :)

I'd prefer to build it than "buy" it :)
(and learn a few things on the job)

I had some help on the #pion go-slack channel.
it's starting to slowly take shape.

-s
Reply all
Reply to author
Forward
0 new messages