A simple WebRTC streaming server. It streams video and audio from a file to a browser client.
- Install Rust
- Serve WebRTC demo client (for example with serve-directory)
$ cargo install serve-directory
$ serve-directory -p 8080 &
- Open
http://localhost:8080/webrtc.html
in your browser - Replace contents of
browser_session_description.txt
file with a session description from the demo client - Run the app with the session description from the demo client:
$ cat browser_session_description.txt | cargo run --release
- It should set your buffer with a server session description. Copy and paste it to the demo client
- Click "Start session" on the demo client