In this example, we'll be using x264 and opus as our video and audio codecs. Therefore, we need to make sure that these codecs are installed within our system.
Installation steps:
git clone https://github.com/pion/mediadevices.git
cd mediadevices/examples/webrtc && go build
jsfiddle.net you should see two text-areas and a 'Start Session' button
In the jsfiddle the top textarea is your browser, copy that, and store the session description in an environment variable, export SDP=<put_the_sdp_here>
Run echo $SDP | ./webrtc
Copy the text that ./webrtc
just emitted and copy into second text area
A video should start playing in your browser above the input boxes, and will continue playing until you close the application.
Congrats, you have used pion-MediaDevices! Now start building something cool