Pure Go implementation of the WebRTC API
Go to file
Hugo Arregui 06733a856b Golang1.13 updates
Update travis to work with golang1.13 + update wasm code
2019-09-08 03:51:46 -04:00
.github Disallow stdlib functions that print to stdio 2019-04-05 11:11:16 -07:00
examples Use synchronization to fix trickle example 2019-09-06 15:04:51 -04:00
internal Enable gochecknoglobals linter 2019-07-09 23:31:56 +01:00
pkg Update IVF Writer frame count when possible 2019-08-29 09:31:56 -07:00
test-wasm Prepare for internal/ice package 2019-05-26 14:09:38 +02:00
.codacy.yaml Mass replace pions -> pion 2019-04-04 15:32:03 -07:00
.eslintrc.json Add eslintrc for codacy 2018-08-11 13:56:28 -07:00
.gitignore Fix OpusWriter issues that break VLC 2019-08-15 17:12:01 -07:00
.golangci.yml Enable gochecknoglobals linter 2019-07-09 23:31:56 +01:00
.travis.yml Golang1.13 updates 2019-09-08 03:51:46 -04:00
api_js.go WASM: Port API object 2019-04-01 21:00:41 +02:00
api_test.go Add tests for WASM bindings 2019-03-15 15:17:51 -07:00
api.go Mass replace pions -> pion 2019-04-04 15:32:03 -07: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 Add tests for WASM bindings 2019-03-15 15:17:51 -07:00
certificate.go Update import paths 2019-04-07 02:17:15 -07:00
configuration_common.go Implement permissive STUN URL parsing 2019-07-17 06:42:46 +01:00
configuration_js.go Implement permissive STUN URL parsing 2019-07-17 06:42:46 +01:00
configuration_test.go Implement permissive STUN URL parsing 2019-07-17 06:42:46 +01:00
configuration.go Implement permissive STUN URL parsing 2019-07-17 06:42:46 +01:00
constants.go Add JavaScript/WASM bindings 2019-03-08 00:26:17 +01:00
datachannel_go_test.go Fix race in TestEOF 2019-05-07 17:33:30 -07:00
datachannel_js_detach.go Create WASM covering review 2019-07-27 09:35:55 -07:00
datachannel_js.go Golang1.13 updates 2019-09-08 03:51:46 -04:00
datachannel_ortc_test.go Update import paths 2019-04-07 02:17:15 -07:00
datachannel_test.go Bump wrtc used for WASM testing 2019-08-23 23:08:56 -07:00
datachannel.go Implement RTCDataChannel onError 2019-07-28 01:27:03 -07: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 Mass replace pions -> pion 2019-04-04 15:32:03 -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 Parse DTLS setup in SetRemoteDescription 2019-08-12 22:05:13 -07:00
dtlsrole.go Parse DTLS setup in SetRemoteDescription 2019-08-12 22:05:13 -07:00
dtlstransport.go Update TODOs around multiple certificates 2019-07-27 09:35:55 -07: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 Move ICE code out of internal 2019-06-15 01:29:08 -07:00
go.mod Bump ICE 2019-09-07 13:36:34 -04:00
go.sum Bump ICE 2019-09-07 13:36:34 -04:00
ice_go_test.go Add mDNS Host Candidate support 2019-06-21 10:13:27 -07:00
ice_go.go Add ToJSON ICECandidate method 2019-07-31 12:44:22 +00:00
icecandidate_test.go Fix ICECandidateInit ToJSON fix 2019-08-01 18:17:44 +00:00
icecandidate.go Fix ICECandidateInit ToJSON fix 2019-08-01 18:17:44 +00:00
icecandidateinit_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icecandidateinit.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icecandidatepair.go Basic stats 2019-06-25 19:36:57 +00:00
icecandidatetype_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icecandidatetype.go Basic stats 2019-06-25 19:36:57 +00:00
icecomponent_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icecomponent.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceconnectionstate_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceconnectionstate.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icecredentialtype_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icecredentialtype.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icegatherer_test.go Add ICEGatherer test case 2019-08-17 00:49:37 -07:00
icegatherer.go Fix possible ill-order of OnLocalCandidate call 2019-08-17 00:49:37 -07:00
icegathererstate_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icegathererstate.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icegatheringstate_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icegatheringstate.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icegatheroptions.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceparameters.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceprotocol_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceprotocol.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icerole_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icerole.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceserver_js.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceserver_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
iceserver.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icetransport_test.go Mass replace pions -> pion 2019-04-04 15:32:03 -07:00
icetransport.go Add ICE transport and SCTP transport stats 2019-08-22 18:31:17 +00:00
icetransportpolicy_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icetransportpolicy.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icetransportstate_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
icetransportstate.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
js_utils.go Golang1.13 updates 2019-09-08 03:51:46 -04:00
LICENSE Initial commit 2018-05-18 16:10:05 -07:00
mediaengine_test.go Mass replace pions -> pion 2019-04-04 15:32:03 -07:00
mediaengine.go Add examples/play-from-disk 2019-08-08 16:44:50 -07:00
networktype_test.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
networktype.go Enable gochecknoglobals linter 2019-07-09 23:31:56 +01:00
oauthcredential.go Move ICE code out of internal 2019-06-15 01:29:08 -07:00
offeransweroptions.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
package.json Bump wrtc used for WASM testing 2019-08-23 23:08:56 -07:00
peerconnection_close_test.go Remove no-op code from shutdown 2019-07-22 21:31:39 -07:00
peerconnection_go_test.go Add TestGatherOnSetLocalDescription 2019-09-07 02:19:43 -04:00
peerconnection_js.go Create WASM covering review 2019-07-27 09:35:55 -07:00
peerconnection_media_test.go Implemented AddTransceiverFrom* methods 2019-07-31 01:57:17 -06:00
peerconnection_setlocaldescription_test.go Fix routine leak in drainSRTP 2019-07-06 22:58:07 +01:00
peerconnection_test.go Fix routine leak in drainSRTP 2019-07-06 22:58:07 +01:00
peerconnection.go Allow gathering of candidates to generate offer 2019-09-05 17:15:56 -04: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 Disable quic by default; enable with build tag 2019-04-05 15:32:40 -04:00
quicrole_test.go Disable quic by default; enable with build tag 2019-04-05 15:32:40 -04:00
quicrole.go Disable quic by default; enable with build tag 2019-04-05 15:32:40 -04:00
quictransport_test.go Update import paths 2019-04-07 02:17:15 -07:00
quictransport.go Create WASM covering review 2019-07-27 09:35:55 -07:00
README.md Rename examples/echo -> examples/reflect 2019-09-04 00:27:48 -07:00
rtcpfeedback.go Add feedback support to SDP generation 2019-03-20 15:44:17 -07: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 Bump SRTP/RTCP and update RTCP API 2019-04-11 16:03:26 -07:00
rtpsender.go Don't error when no candidate pairs 2019-06-08 17:51:18 -07:00
rtpsendparameters.go Expose Encodings variable for ORTC 2019-02-26 00:06:35 -08:00
rtptransceiver.go Don't store transceiver MID 2019-07-22 21:31:39 -07: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
rtptransceiverinit.go Migrate SDP generation to Unified Plan 2019-04-04 12:55:36 -07:00
sctpcapabilities.go Remove rtc prefix from filenames 2019-02-17 16:22:56 -08:00
sctptransport.go Add ICE transport and SCTP transport stats 2019-08-22 18:31:17 +00: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
sdpsemantics_test.go Support plan-b (fallback or explicit) 2019-04-09 10:26:42 -04:00
sdpsemantics.go Support plan-b (fallback or explicit) 2019-04-09 10:26:42 -04: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 Mass replace pions -> pion 2019-04-04 15:32:03 -07:00
settingengine_js.go WASM: Port API object 2019-04-01 21:00:41 +02:00
settingengine_test.go Improve build tags for Wasm 2019-03-22 10:48:03 -07:00
settingengine.go Add missing SettingEngine setters 2019-06-14 11:45:07 +00:00
signalingstate_test.go Update import paths 2019-04-07 02:17:15 -07:00
signalingstate.go Update import paths 2019-04-07 02:17:15 -07:00
stats_go_test.go Add ICE transport and SCTP transport stats 2019-08-22 18:31:17 +00:00
stats_go.go Basic stats 2019-06-25 19:36:57 +00:00
stats.go Basic stats 2019-06-25 19:36:57 +00:00
track_test.go Return io.EOF when Track has no RTPSenders 2019-03-31 12:00:40 -07:00
track.go Set RTP MTU to 1200 to match Chromium 2019-08-17 00:51:42 -07:00
yarn.lock Add tests for WASM bindings 2019-03-15 15:17:51 -07:00

Pion WebRTC
Pion WebRTC

A pure Go implementation of the WebRTC API

Pion webrtc Sourcegraph Widget Slack Widget
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 has arrived! See the release notes to learn about new features and breaking changes.

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

We are actively planning v2.1.0 and would love your feedback! Anyone can add issues, and anything that you think can empower Pion users.

Usage

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

For more full featured examples that use 3rd party libraries see our example-webrtc-applications repo.

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.

We maintain a FAQ with answers to common questions. If you have a question not covered please submit a PR, we would be happy to answer it!

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.

WebAssembly

Pion WebRTC can be used when compiled to WebAssembly, also known as Wasm. In this case the library will act as a wrapper around the JavaScript WebRTC API. This allows you to use WebRTC from Go in both server and browser side code with little to no changes. Check out the example applications for instructions on how to compile and run the WebAssembly examples. You can also visit the Wiki page on WebAssembly Development for more information.

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

Project status

Stargazers over time

  • pion/turn: A simple extendable Golang TURN server
  • [WIP] pion/media-server: A Pion WebRTC powered media server, providing the building blocks for anything RTC.

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