Pure Go implementation of the WebRTC API
Go to file
Alex Browne 0f1ddf0825 Add JavaScript/WASM bindings
Resolves #478. Adds minimal JavaScript/WASM bindings. This makes it
possible to compile core parts of pions/webrtc to WASM and run it in the
browser. Only data channels are supported for now and there is
limited/no support for certificates and credentials.
2019-03-08 00:26:17 +01:00
.github Add lint for filenames 2019-02-27 23:14:20 -08:00
examples Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
internal Fix deadlock on DTLS shutdown 2019-03-07 11:48:40 +01:00
pkg IVF records can now be longer than 30s 2019-03-07 14:49:25 -08:00
.codacy.yaml Examples: host examples locally 2018-09-15 09:58:03 +02:00
.eslintrc.json Add eslintrc for codacy 2018-08-11 13:56:28 -07:00
.gitignore Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
.golangci.yml Enable gocritic and fix reported errors 2019-02-17 21:35:04 -08:00
.travis.yml Add lint for filenames 2019-02-27 23:14:20 -08:00
api_test.go API: Expose SettingEngine 2019-01-24 20:35:49 +01:00
api.go Avoid defaultAPI 2019-02-22 07:31:20 +01:00
bundlepolicy_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
bundlepolicy.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
certificate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
certificate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
configuration_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
configuration.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
constants.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
CONTRIBUTING.md Docs: Improve docs 2018-09-17 12:02:08 -07:00
datachannel_js.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
datachannel_ortc_test.go Remove pkg/errors dependency 2019-03-06 09:34:10 -08:00
datachannel_test.go Move to new Track API 2019-02-25 23:44:09 -08:00
datachannel.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
datachannelinit.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
datachannelmessage.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
datachannelparameters.go Update sctp and datachannel revs 2019-02-18 21:27:31 +01:00
datachannelstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
datachannelstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
DESIGN.md Docs: Improve docs 2018-09-17 12:02:08 -07:00
dtlsfingerprint.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
dtlsparameters.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
dtlsrole_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
dtlsrole.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
dtlstransport.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
dtlstransportstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
dtlstransportstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
errors.go Update golangci-lint to v14.0.0 2019-02-17 21:35:04 -08:00
go.mod Update to use new RTCP API 2019-03-07 13:16:01 -08:00
go.sum Update to use new RTCP API 2019-03-07 13:16:01 -08:00
icecandidate_test.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
icecandidate.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
icecandidateinit_test.go API: Use ICECandidateInit in AddICECandidate 2019-02-21 07:09:35 +01:00
icecandidateinit.go API: Use ICECandidateInit in AddICECandidate 2019-02-21 07:09:35 +01:00
icecandidatepair.go Add OnSelectedCandidatePairChange callback 2019-03-01 08:07:42 -05:00
icecandidatetype_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icecandidatetype.go Update golangci-lint to v14.0.0 2019-02-17 21:35:04 -08:00
icecomponent_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icecomponent.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
iceconnectionstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
iceconnectionstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icecredentialtype_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icecredentialtype.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icegatherer_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icegatherer.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
icegathererstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icegathererstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icegatheringstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icegatheringstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icegatheroptions.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
iceparameters.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
iceprotocol_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
iceprotocol.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icerole_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icerole.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
iceserver_test.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
iceserver.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
icetransport.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
icetransportpolicy_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icetransportpolicy.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
icetransportstate_test.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
icetransportstate.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
js_utils.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
LICENSE Initial commit 2018-05-18 16:10:05 -07:00
lossy_stream.go Move to new Track API 2019-02-25 23:44:09 -08:00
mediaengine_test.go Upgrade to pions/sdp v2 2019-02-18 11:47:05 -08:00
mediaengine.go Don't allow RTP codecs that violate RFC7587 2019-03-01 16:00:33 -05:00
oauthcredential.go Rename MacKey -> MACKey 2019-02-18 11:47:05 -08:00
offeransweroptions.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
peerconnection_close_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
peerconnection_js.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
peerconnection_media_test.go Fix deadlock on DTLS shutdown 2019-03-07 11:48:40 +01:00
peerconnection_test.go Fix deadlock on DTLS shutdown 2019-03-07 11:48:40 +01:00
peerconnection.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
peerconnectionstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
peerconnectionstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
prioritytype_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
prioritytype.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
quicparameters.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
quicrole_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
quicrole.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
quictransport_test.go Remove pkg/errors dependency 2019-03-06 09:34:10 -08:00
quictransport.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
README.md Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
rtcpmuxpolicy_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
rtcpmuxpolicy.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
rtpcodingparameters.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
rtpdecodingparameters.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
rtpencodingparameters.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
rtpreceiveparameters.go Expose Encodings variable for ORTC 2019-02-26 00:06:35 -08:00
rtpreceiver.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
rtpsender.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
rtpsendparameters.go Expose Encodings variable for ORTC 2019-02-26 00:06:35 -08:00
rtptransceiver.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
rtptransceiverdirection_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
rtptransceiverdirection.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
sctpcapabilities.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
sctptransport.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
sctptransportstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
sctptransportstate.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
sdptype_test.go Rename MacKey -> MACKey 2019-02-18 11:47:05 -08:00
sdptype.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
sessiondescription_test.go Rename Sdp -> SDP 2019-02-18 11:47:05 -08:00
sessiondescription.go Upgrade to pions/sdp v2 2019-02-18 11:47:05 -08:00
settingengine_test.go API: Expose SettingEngine 2019-01-24 20:35:49 +01:00
settingengine.go Move pkg/ice to internal/ice 2019-03-01 08:07:42 -05:00
signalingstate_test.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
signalingstate.go Remove pkg/errors dependency 2019-03-06 09:34:10 -08:00
track.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00

Pion WebRTC
Pion WebRTC

A pure Go implementation of the WebRTC API

Pion webrtc Sourcegraph Widget Slack Widget Waffle board
Build Status GoDoc Coverage Status Go Report Card Codacy Badge License: MIT


See DESIGN.md for an overview of features and future goals.

Breaking Changes

Pion WebRTC v2.0.0 is coming soon! HEAD will be unstable for the next few weeks as we prepare for the new release. See the release notes to learn about the new features breaking changes.

Have any questions? Join the Slack channel to follow development and speak with the maintainers.

Use the tag v1.2.0 if you'd like to continue using the v1.0 API in the meantime. After v2.0 is released v1.0 will be deprecated and unmaintained.

Usage

Check out the example applications to help you along your Pion WebRTC journey.

The Pion WebRTC API closely matches the JavaScript WebRTC API. Most existing documentation is therefore also usefull when working with Pion. Furthermore, our GoDoc is actively maintained.

Now go forth and build some awesome apps! 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.

Roadmap

The library is in active development, please refer to the roadmap to track our major milestones.

Community

Pion has an active community on the Golang Slack. Sign up and join the #pion channel for discussions and support. You can also use Pion mailing list.

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

  • pions/turn: A simple extendable Golang TURN server
  • [WIP] pions/media-server: A Pion WebRTC powered media server, providing the building blocks for anything RTC.
  • [WIP] pions/dcnet: A package providing Golang net interfaces around Pion WebRTC data channels.

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