save-to-webm
save-to-webm is a simple application that shows how to receive audio and video using Pion and then save to WebM container.
Instructions
Open save-to-webm example page
jsfiddle.net you should see your Webcam, two text-areas and a 'Start Session' button
Run save-to-webm with your browsers SessionDescription as stdin
In the jsfiddle the top textarea is your browser, copy that and:
Linux/macOS
Run echo $BROWSER_SDP | save-to-webm
Windows
- Paste the SessionDescription into a file.
- Run
save-to-webm < my_file
Copy the text that save-to-webm
just emitted and copy into second text area
Your video and/or audio should be saved to test.webm
, and will continue playing until you stop the application by Ctrl+C.
Congrats, you have used pion-WebRTC! Now start building something cool