/rust-webrtc

A simple WebRTC streaming server. It streams video and audio from a file to a browser client.

Primary LanguageRust

WebRTC video/audio stream

A simple WebRTC streaming server. It streams video and audio from a file to a browser client.

App recording

Try it out!

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