github.com/pion/webrtc/v4@v4.0.1/examples/ortc/README.md (about) 1 # ortc 2 ortc demonstrates Pion WebRTC's [ORTC](https://ortc.org/) capabilities. Instead of using the Session Description Protocol 3 to configure and communicate ORTC provides APIs. Users then can implement signaling with whatever protocol they wish. 4 ORTC can then be used to implement WebRTC. A ORTC implementation can parse/emit Session Description and act as a WebRTC 5 implementation. 6 7 In this example we have defined a simple JSON based signaling protocol. 8 9 ## Instructions 10 ### Download ortc 11 ``` 12 go install github.com/pion/webrtc/v4/examples/ortc@latest 13 ``` 14 15 ### Run first client as offerer 16 `ortc -offer` this will emit a base64 message. Copy this message to your clipboard. 17 18 ## Run the second client as answerer 19 Run the second client. This should be launched with the message you copied in the previous step as stdin. 20 21 `echo $BASE64_MESSAGE_YOU_COPIED | ortc` 22 23 This will emit another base64 message. Copy this new message. 24 25 ## Send base64 message to first client via CURL 26 27 * Run `curl localhost:8080 -d "BASE64_MESSAGE_YOU_COPIED"`. `BASE64_MESSAGE_YOU_COPIED` is the value you copied in the last step. 28 29 ### Enjoy 30 If everything worked you will see `Data channel 'Foo'-'' open.` in each terminal. 31 32 Each client will send random messages every 5 seconds that will appear in the terminal 33 34 Congrats, you have used Pion WebRTC! Now start building something cool