Skip to content

revenue-hack/pion-webrtc-p2p-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pion-to-pion

pion-to-pion is an example of two pion instances communicating directly!

To see an example of pion-to-pion that uses Trickle ICE see pion-to-pion-trickle. This may connect faster (and will eventually become the default API) but requires more code.

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:

go install github.com/pion/webrtc/examples/pion-to-pion/answer
answer

Next, run offer:

go install github.com/pion/webrtc/examples/pion-to-pion/offer
offer

You should see them connect and start to exchange messages.

You can use Docker-compose to start this example:

docker-compose up -d

Now, you can see message exchanging, using docker logs.

About

by pion, webRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published