github.com/pion/webrtc/v4@v4.0.1/examples/whip-whep/README.md (about) 1 # whip-whep 2 whip-whep demonstrates using WHIP and WHEP with Pion. Since WHIP+WHEP is standardized signaling you can publish via tools like OBS and GStreamer. 3 You can then watch it in sub-second time from your browser, or pull the video back into OBS and GStreamer via WHEP. 4 5 Further details about the why and how of WHIP+WHEP are below the instructions. 6 7 ## Instructions 8 9 ### Download whip-whep 10 11 This example requires you to clone the repo since it is serving static HTML. 12 13 ``` 14 git clone https://github.com/pion/webrtc.git 15 cd webrtc/examples/whip-whep 16 ``` 17 18 ### Run whip-whep 19 Execute `go run *.go` 20 21 ### Publish 22 23 You can publish via an tool that supports WHIP or via your browser. To publish via your browser open [http://localhost:8080](http://localhost:8080), and press publish. 24 25 To publish via OBS set `Service` to `WHIP` and `Server` to `http://localhost:8080/whip`. The `Bearer Token` can be whatever value you like. 26 27 28 ### Subscribe 29 30 Once you have started publishing open [http://localhost:8080](http://localhost:8080) and press the subscribe button. You can now view your video you published via 31 OBS or your browser. 32 33 Congrats, you have used Pion WebRTC! Now start building something cool 34 35 ## Why WHIP/WHEP? 36 37 WHIP/WHEP mandates that a Offer is uploaded via HTTP. The server responds with a Answer. With this strong API contract WebRTC support can be added to tools like OBS. 38 39 For more info on WHIP/WHEP specification, feel free to read some of these great resources: 40 - https://webrtchacks.com/webrtc-cracks-the-whip-on-obs/ 41 - https://datatracker.ietf.org/doc/draft-ietf-wish-whip/ 42 - https://datatracker.ietf.org/doc/draft-ietf-wish-whep/ 43 - https://bloggeek.me/whip-whep-webrtc-live-streaming