Pure Go implementation of the WebRTC API
Go to file
2024-04-03 15:28:01 -04:00
.github Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
.reuse Update CI configs to v0.10.11 2023-08-05 14:19:45 -04:00
e2e Update Pion deps 2023-09-02 14:28:40 -04:00
examples Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
internal Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
LICENSES Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
pkg SampleBuilder: Deprecate PopWithTimestamp 2024-03-14 11:21:06 +09:00
test-wasm Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
.codacy.yaml Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
.eslintrc.json Add eslintrc for codacy 2018-08-11 13:56:28 -07:00
.gitignore Update CI configs to v0.10.7 2023-05-05 11:58:49 -04:00
.golangci.yml Update CI configs to v0.10.8 2023-05-18 15:24:20 -04:00
.goreleaser.yml Update CI configs to v0.10.7 2023-05-05 11:58:49 -04:00
api_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
api_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
api.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
atomicbool.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
AUTHORS.txt Update AUTHORS.txt 2023-09-03 14:52:28 -04:00
bundlepolicy_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
bundlepolicy.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
certificate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
certificate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
codecov.yml Update CI configs to v0.10.7 2023-05-05 11:58:49 -04:00
configuration_common.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
configuration_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
configuration_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
configuration.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
constants.go RTX attribute constants should be public 2024-02-05 23:06:48 +08:00
datachannel_go_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
datachannel_js_detach.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
datachannel_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
datachannel_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
datachannel.go Fix DataChannel.handleOpen 2023-09-23 23:33:38 -04:00
datachannelinit.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
datachannelmessage.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
datachannelparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
datachannelstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
datachannelstate.go Stats: improve JSON support, add missing structs 2023-08-17 13:15:07 -04:00
DESIGN.md Fix a typo in DESIGN.md 2020-07-17 10:36:18 -07:00
dtlsfingerprint.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
dtlsparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
dtlsrole_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
dtlsrole.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
dtlstransport_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
dtlstransport_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
dtlstransport.go Fix interceptor.RTCPReaderFunc typo 2024-02-10 22:34:39 -05:00
dtlstransportstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
dtlstransportstate.go Stats: improve JSON support, add missing structs 2023-08-17 13:15:07 -04:00
errors.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
gathering_complete_promise_example_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
gathering_complete_promise.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
go.mod Update github.com/pion/sctp to v1.8.14 2024-04-03 15:28:01 -04:00
go.sum Update github.com/pion/sctp to v1.8.14 2024-04-03 15:28:01 -04:00
ice_go.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecandidate_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icecandidate.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icecandidateinit_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecandidateinit.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecandidatepair.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecandidatetype_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecandidatetype.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icecomponent_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecomponent.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
iceconnectionstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
iceconnectionstate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecredentialtype_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icecredentialtype.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icegatherer_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icegatherer.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icegathererstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icegathererstate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icegatheringstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icegatheringstate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icegatheroptions.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icemux.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
iceparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
iceprotocol_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
iceprotocol.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icerole_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icerole.go Stats: improve JSON support, add missing structs 2023-08-17 13:15:07 -04:00
iceserver_js.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
iceserver_test.go Upgrading pion/ice dependency 2023-05-14 21:42:24 -04:00
iceserver.go Upgrading pion/ice dependency 2023-05-14 21:42:24 -04:00
icetransport_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icetransport_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icetransport.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icetransportpolicy_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icetransportpolicy.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
icetransportstate_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
icetransportstate.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
interceptor_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
interceptor.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
js_utils.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
LICENSE Bring back LICENSE file 2023-05-19 10:12:54 +02:00
mediaengine_test.go Refine rtx support 2024-02-05 23:06:48 +08:00
mediaengine.go Refine rtx support 2024-02-05 23:06:48 +08:00
networktype_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
networktype.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
oauthcredential.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
offeransweroptions.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
operations_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
operations.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
ortc_datachannel_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
ortc_media_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
ortc_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
package.json Update dependency wrtc to v0.4.7 2021-01-14 13:07:47 -08:00
peerconnection_close_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
peerconnection_go_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
peerconnection_js_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
peerconnection_js.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
peerconnection_media_test.go Skip padding packet for simulcast probe 2024-02-02 17:28:26 +08:00
peerconnection_renegotiation_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
peerconnection_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
peerconnection.go Include msid-semantic in Session Attributes 2024-04-01 13:21:10 -04:00
peerconnectionstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
peerconnectionstate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
README.md Harmonize sections in README 2023-04-05 09:17:12 +02:00
renovate.json Update CI configs to v0.8.0 2022-10-21 10:00:00 +09:00
rtcpfeedback.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtcpmuxpolicy_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtcpmuxpolicy.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpcapabilities.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpcodec.go Generate answer to match group bundle in offer 2023-09-07 13:48:46 +08:00
rtpcodingparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpdecodingparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpencodingparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpreceiveparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpreceiver_go_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpreceiver_go.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpreceiver_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpreceiver_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
rtpreceiver.go Fix panic of rtx attributes 2024-02-05 23:06:48 +08:00
rtpsender_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtpsender_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
rtpsender.go Fix interceptor.RTCPReaderFunc typo 2024-02-10 22:34:39 -05:00
rtpsendparameters.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtptransceiver_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtptransceiver_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtptransceiver.go Skip padding packet for simulcast probe 2024-02-02 17:28:26 +08:00
rtptransceiverdirection_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtptransceiverdirection.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
rtptransceiverinit.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sctpcapabilities.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sctptransport_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sctptransport_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sctptransport.go Put SCTP Zero Checksum behind SettingEngine 2024-03-18 09:37:11 -04:00
sctptransportstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sctptransportstate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sdp_test.go Update github.com/pion/sdp/v3 to v3.0.9 2024-03-28 21:59:53 -04:00
sdp.go Refine rtx support 2024-02-05 23:06:48 +08:00
sdpsemantics_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
sdpsemantics.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sdptype_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sdptype.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sessiondescription_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
sessiondescription.go Update module github.com/pion/sdp to v3.0.8 2024-03-06 22:27:50 -05:00
settingengine_js.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
settingengine_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
settingengine.go Put SCTP Zero Checksum behind SettingEngine 2024-03-18 09:37:11 -04:00
signalingstate_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
signalingstate.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
srtp_writer_future.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
stats_go_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
stats_go.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
stats.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
track_local_static_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
track_local_static.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
track_local.go Make TrackLocalContext an interface 2023-08-03 14:12:08 -04:00
track_remote.go Fix data race of RTX packet 2024-02-05 23:06:48 +08:00
track_test.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
vnet_test.go Revert "Update module transport, srtp, ice and turn" 2023-09-08 15:06:27 -07:00
webrtc.go Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
yarn.lock Make repo REUSE compliant 2023-05-05 11:58:49 -04:00

Pion WebRTC
Pion WebRTC

A pure Go implementation of the WebRTC API

Pion WebRTC Sourcegraph Widget Slack Widget Twitter Widget
GitHub Workflow Status Go Reference Coverage Status Go Report Card License: MIT


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.

Sponsoring

Work on Pion's congestion control and bandwidth estimation was funded through the User-Operated Internet fund, a fund established by NLnet made possible by financial support from the PKT Community/The Network Steward and stichting Technology Commons Trust.

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: AUTHORS.txt

License

MIT License - see LICENSE for full text