rtp-forwarder is a simple application that shows how to forward your webcam/microphone via RTP using Pion WebRTC.
export GO111MODULE=on
go get github.com/pion/webrtc/v3/examples/rtp-forwarder
jsfiddle.net you should see your Webcam, two text-areas and a 'Start Session' button
In the jsfiddle the top textarea is your browser, copy that and:
Run echo $BROWSER_SDP | rtp-forwarder
- Paste the SessionDescription into a file.
- Run
rtp-forwarder < my_file
Copy the text that rtp-forwarder
just emitted and copy into second text area
Open rtp-forwarder.sdp
with VLC and enjoy your live video!
Run ffprobe -i rtp-forwarder.sdp -protocol_whitelist file,udp,rtp
to get more details about your streams
Run ffplay -i rtp-forwarder.sdp -protocol_whitelist file,udp,rtp
to play your streams