From 31d90467aea75612ac4dc21b09ed1036e9ec6500 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Sat, 20 Mar 2021 14:11:04 -0700 Subject: [PATCH] Update examples/broadcast README Be more explicit about where `YOUR_SDP` comes from Relates to #1019 --- examples/broadcast/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/broadcast/README.md b/examples/broadcast/README.md index f27ac87a..f9544b38 100644 --- a/examples/broadcast/README.md +++ b/examples/broadcast/README.md @@ -20,11 +20,19 @@ Run `broadcast` OR run `main.go` in `github.com/pion/webrtc/examples/broadcast` ### Start a publisher * Click `Publish a Broadcast` -* `curl localhost:8080/sdp -d "YOUR SDP"`. The `broadcast` application will respond with an offer, paste this into the second input field. Then press `Start Session` +* Copy the string in the first input labelled `Browser base64 Session Description` +* Run `curl localhost:8080/sdp -d "$BROWSER_OFFER"`. `$BROWSER_OFFER` is the value you copied in the last step. +* The `broadcast` terminal application will respond with an answer, paste this into the second input field in your browser. +* Press `Start Session` +* The connection state will be printed in the terminal and under `logs` in the browser. ### Join the broadcast * Click `Join a Broadcast` -* `curl localhost:8080/sdp -d "YOUR SDP"`. The `broadcast` application will respond with an offer, paste this into the second input field. Then press `Start Session` +* Copy the string in the first input labelled `Browser base64 Session Description` +* Run `curl localhost:8080/sdp -d "$BROWSER_OFFER"`. `$BROWSER_OFFER` is the value you copied in the last step. +* The `broadcast` terminal application will respond with an answer, paste this into the second input field in your browser. +* Press `Start Session` +* The connection state will be printed in the terminal and under `logs` in the browser. You can change the listening port using `-port 8011`