snapshot of https://github.com/pion/webrtc.git (main, 2026-09-15; blobs > 131072B omitted)
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
Fuzz / fuzz (push) Failing after 0s
CodeQL / analyze (push) Failing after 0s
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
Fuzz / fuzz (push) Failing after 0s
CodeQL / analyze (push) Failing after 0s
This commit is contained in:
26
examples/pion-to-pion/README.md
Normal file
26
examples/pion-to-pion/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# pion-to-pion
|
||||
pion-to-pion is an example of two pion instances communicating directly!
|
||||
|
||||
The SDP offer and answer are exchanged automatically over HTTP.
|
||||
The `answer` side acts like a HTTP server and should therefore be ran first.
|
||||
|
||||
## Instructions
|
||||
First run `answer`:
|
||||
```sh
|
||||
go install github.com/pion/webrtc/v4/examples/pion-to-pion/answer@latest
|
||||
answer
|
||||
```
|
||||
Next, run `offer`:
|
||||
```sh
|
||||
go install github.com/pion/webrtc/v4/examples/pion-to-pion/offer@latest
|
||||
offer
|
||||
```
|
||||
|
||||
You should see them connect and start to exchange messages.
|
||||
|
||||
## You can use Docker-compose to start this example:
|
||||
```sh
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
Now, you can see message exchanging, using `docker logs`.
|
||||
Reference in New Issue
Block a user