周玉环 d906a41c2e first commit 2 zile în urmă
..
internal d906a41c2e first commit 2 zile în urmă
pkg d906a41c2e first commit 2 zile în urmă
.codacy.yaml d906a41c2e first commit 2 zile în urmă
.eslintrc.json d906a41c2e first commit 2 zile în urmă
.gitignore d906a41c2e first commit 2 zile în urmă
.golangci.yml d906a41c2e first commit 2 zile în urmă
AUTHORS.txt d906a41c2e first commit 2 zile în urmă
DESIGN.md d906a41c2e first commit 2 zile în urmă
LICENSE d906a41c2e first commit 2 zile în urmă
README.md d906a41c2e first commit 2 zile în urmă
api.go d906a41c2e first commit 2 zile în urmă
api_js.go d906a41c2e first commit 2 zile în urmă
atomicbool.go d906a41c2e first commit 2 zile în urmă
bundlepolicy.go d906a41c2e first commit 2 zile în urmă
certificate.go d906a41c2e first commit 2 zile în urmă
codecov.yml d906a41c2e first commit 2 zile în urmă
configuration.go d906a41c2e first commit 2 zile în urmă
configuration_common.go d906a41c2e first commit 2 zile în urmă
configuration_js.go d906a41c2e first commit 2 zile în urmă
constants.go d906a41c2e first commit 2 zile în urmă
datachannel.go d906a41c2e first commit 2 zile în urmă
datachannel_js.go d906a41c2e first commit 2 zile în urmă
datachannel_js_detach.go d906a41c2e first commit 2 zile în urmă
datachannelinit.go d906a41c2e first commit 2 zile în urmă
datachannelmessage.go d906a41c2e first commit 2 zile în urmă
datachannelparameters.go d906a41c2e first commit 2 zile în urmă
datachannelstate.go d906a41c2e first commit 2 zile în urmă
dtlsfingerprint.go d906a41c2e first commit 2 zile în urmă
dtlsparameters.go d906a41c2e first commit 2 zile în urmă
dtlsrole.go d906a41c2e first commit 2 zile în urmă
dtlstransport.go d906a41c2e first commit 2 zile în urmă
dtlstransport_js.go d906a41c2e first commit 2 zile în urmă
dtlstransportstate.go d906a41c2e first commit 2 zile în urmă
errors.go d906a41c2e first commit 2 zile în urmă
gathering_complete_promise.go d906a41c2e first commit 2 zile în urmă
ice_go.go d906a41c2e first commit 2 zile în urmă
icecandidate.go d906a41c2e first commit 2 zile în urmă
icecandidateinit.go d906a41c2e first commit 2 zile în urmă
icecandidatepair.go d906a41c2e first commit 2 zile în urmă
icecandidatetype.go d906a41c2e first commit 2 zile în urmă
icecomponent.go d906a41c2e first commit 2 zile în urmă
iceconnectionstate.go d906a41c2e first commit 2 zile în urmă
icecredentialtype.go d906a41c2e first commit 2 zile în urmă
icegatherer.go d906a41c2e first commit 2 zile în urmă
icegathererstate.go d906a41c2e first commit 2 zile în urmă
icegatheringstate.go d906a41c2e first commit 2 zile în urmă
icegatheroptions.go d906a41c2e first commit 2 zile în urmă
icemux.go d906a41c2e first commit 2 zile în urmă
iceparameters.go d906a41c2e first commit 2 zile în urmă
iceprotocol.go d906a41c2e first commit 2 zile în urmă
icerole.go d906a41c2e first commit 2 zile în urmă
iceserver.go d906a41c2e first commit 2 zile în urmă
iceserver_js.go d906a41c2e first commit 2 zile în urmă
icetransport.go d906a41c2e first commit 2 zile în urmă
icetransport_js.go d906a41c2e first commit 2 zile în urmă
icetransportpolicy.go d906a41c2e first commit 2 zile în urmă
icetransportstate.go d906a41c2e first commit 2 zile în urmă
interceptor.go d906a41c2e first commit 2 zile în urmă
js_utils.go d906a41c2e first commit 2 zile în urmă
mediaengine.go d906a41c2e first commit 2 zile în urmă
networktype.go d906a41c2e first commit 2 zile în urmă
oauthcredential.go d906a41c2e first commit 2 zile în urmă
offeransweroptions.go d906a41c2e first commit 2 zile în urmă
operations.go d906a41c2e first commit 2 zile în urmă
package.json d906a41c2e first commit 2 zile în urmă
peerconnection.go d906a41c2e first commit 2 zile în urmă
peerconnection_js.go d906a41c2e first commit 2 zile în urmă
peerconnectionstate.go d906a41c2e first commit 2 zile în urmă
renovate.json d906a41c2e first commit 2 zile în urmă
rtcpfeedback.go d906a41c2e first commit 2 zile în urmă
rtcpmuxpolicy.go d906a41c2e first commit 2 zile în urmă
rtpcapabilities.go d906a41c2e first commit 2 zile în urmă
rtpcodec.go d906a41c2e first commit 2 zile în urmă
rtpcodingparameters.go d906a41c2e first commit 2 zile în urmă
rtpdecodingparameters.go d906a41c2e first commit 2 zile în urmă
rtpencodingparameters.go d906a41c2e first commit 2 zile în urmă
rtpreceiveparameters.go d906a41c2e first commit 2 zile în urmă
rtpreceiver.go d906a41c2e first commit 2 zile în urmă
rtpreceiver_go.go d906a41c2e first commit 2 zile în urmă
rtpreceiver_js.go d906a41c2e first commit 2 zile în urmă
rtpsender.go d906a41c2e first commit 2 zile în urmă
rtpsender_js.go d906a41c2e first commit 2 zile în urmă
rtpsendparameters.go d906a41c2e first commit 2 zile în urmă
rtptransceiver.go d906a41c2e first commit 2 zile în urmă
rtptransceiver_js.go d906a41c2e first commit 2 zile în urmă
rtptransceiverdirection.go d906a41c2e first commit 2 zile în urmă
rtptransceiverinit.go d906a41c2e first commit 2 zile în urmă
sctpcapabilities.go d906a41c2e first commit 2 zile în urmă
sctptransport.go d906a41c2e first commit 2 zile în urmă
sctptransport_js.go d906a41c2e first commit 2 zile în urmă
sctptransportstate.go d906a41c2e first commit 2 zile în urmă
sdp.go d906a41c2e first commit 2 zile în urmă
sdpsemantics.go d906a41c2e first commit 2 zile în urmă
sdptype.go d906a41c2e first commit 2 zile în urmă
sessiondescription.go d906a41c2e first commit 2 zile în urmă
settingengine.go d906a41c2e first commit 2 zile în urmă
settingengine_js.go d906a41c2e first commit 2 zile în urmă
signalingstate.go d906a41c2e first commit 2 zile în urmă
srtp_writer_future.go d906a41c2e first commit 2 zile în urmă
stats.go d906a41c2e first commit 2 zile în urmă
stats_go.go d906a41c2e first commit 2 zile în urmă
track_local.go d906a41c2e first commit 2 zile în urmă
track_local_static.go d906a41c2e first commit 2 zile în urmă
track_remote.go d906a41c2e first commit 2 zile în urmă
webrtc.go d906a41c2e first commit 2 zile în urmă
yarn.lock d906a41c2e first commit 2 zile în urmă

README.md

Pion WebRTC
Pion WebRTC

A pure Go implementation of the WebRTC API

Pion webrtc Sourcegraph Widget Slack Widget Twitter Widget
Build Status PkgGoDev Coverage Status Go Report Card


Usage

Go Modules are mandatory for using Pion WebRTC. So make sure you set export GO111MODULE=on, and explicitly specify /v2 or /v3 when importing.

example applications contains code samples of common things people build with Pion WebRTC.

example-webrtc-applications contains more full featured examples that use 3rd party libraries.

awesome-pion contains projects that have used Pion, and serve as real world examples of usage.

GoDoc is an auto generated API reference. All our Public APIs are commented.

FAQ has answers to common questions. If you have a question not covered please ask in Slack we are always looking to expand it.

Now go build something awesome! Here are some ideas to get your creative juices flowing:

  • Send a video file to multiple browser in real time for perfectly synchronized movie watching.
  • Send a webcam on an embedded device to your browser with no additional server required!
  • Securely send data between two servers, without using pub/sub.
  • Record your webcam and do special effects server side.
  • Build a conferencing application that processes audio/video and make decisions off of it.
  • Remotely control a robots and stream its cameras in realtime.

Want to learn more about WebRTC?

Join our Office Hours. Come hang out, ask questions, get help debugging and hear about the cool things being built with WebRTC. We also start every meeting with basic project planning.

Check out WebRTC for the Curious. A book about WebRTC in depth, not just about the APIs. Learn the full details of ICE, SCTP, DTLS, SRTP, and how they work together to make up the WebRTC stack.

This is also a great resource if you are trying to debug. Learn the tools of the trade and how to approach WebRTC issues.

This book is vendor agnostic and will not have any Pion specific information.

Features

PeerConnection API

  • Go implementation of webrtc-pc and webrtc-stats
  • DataChannels
  • Send/Receive audio and video
  • Renegotiation
  • Plan-B and Unified Plan
  • SettingEngine for Pion specific extensions

Connectivity

  • Full ICE Agent
  • ICE Restart
  • Trickle ICE
  • STUN
  • TURN (UDP, TCP, DTLS and TLS)
  • mDNS candidates

DataChannels

  • Ordered/Unordered
  • Lossy/Lossless

Media

Security

  • TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 and TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA for DTLS v1.2
  • SRTP_AEAD_AES_256_GCM and SRTP_AES128_CM_HMAC_SHA1_80 for SRTP
  • Hardware acceleration available for GCM suites

Pure Go

  • No Cgo usage
  • Wide platform support
    • Windows, macOS, Linux, FreeBSD
    • iOS, Android
    • WASM see examples
    • 386, amd64, arm, mips, ppc64
  • Easy to build Numbers generated on Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
    • Time to build examples/play-from-disk - 0.66s user 0.20s system 306% cpu 0.279 total
    • Time to run entire test suite - 25.60s user 9.40s system 45% cpu 1:16.69 total
  • Tools to measure performance provided

Roadmap

The library is in active development, please refer to the roadmap to track our major milestones. We also maintain a list of Big Ideas these are things we want to build but don't have a clear plan or the resources yet. If you are looking to get involved this is a great place to get started! We would also love to hear your ideas! Even if you can't implement it yourself, it could inspire others.

Community

Pion has an active community on the Slack.

Follow the Pion Twitter for project updates and important WebRTC news.

We are always looking to support your projects. Please reach out if you have something to build! If you need commercial support or don't want to use public methods you can contact us at team@pion.ly

Contributing

Check out the contributing wiki to join the group of amazing people making this project possible:

License

MIT License - see LICENSE for full text