• Stars
    star
    12,568
  • Rank 2,422 (Top 0.05 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pure Go implementation of the WebRTC API

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 /v4 (or an earlier version) 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 [email protected]

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

More Repositories

1

turn

Pion TURN, an API for building TURN clients and servers
Go
1,674
star
2

example-webrtc-applications

Examples of WebRTC applications that are large, or use 3rd party libraries
Go
935
star
3

awesome-pion

A curated list of awesome things related to Pion
Shell
678
star
4

dtls

DTLS 1.2 Server/Client implementation for Go
Go
556
star
5

stun

A Go implementation of STUN
Go
552
star
6

mediadevices

Go implementation of the MediaDevices API.
Go
503
star
7

ice

A Go implementation of ICE
Go
389
star
8

opus

Pure Go implementation of Opus
Go
370
star
9

rtp

A Go implementation of RTP
Go
320
star
10

rtwatch

Watch videos with friends using WebRTC, let the server do the pausing and seeking.
Go
284
star
11

sctp

A Go implementation of SCTP
Go
208
star
12

offline-browser-communication

Demonstration of a browser connecting to Pion WebRTC without a signaling server.
Go
178
star
13

mdns

Pure Go implementation of Multicast DNS
Go
176
star
14

quic

A Go implementation of the QUIC API for Peer-to-peer and Client-to-Server Connections
Go
176
star
15

rtsp-bench

RTSP -> WebRTC Server that generates a CPU Usage report
Go
158
star
16

rtcp

A Go implementation of RTCP
Go
140
star
17

sdp

A Go implementation of the SDP
Go
136
star
18

srtp

A Go implementation of SRTP
Go
106
star
19

interceptor

Pluggable RTP/RTCP processors for building real time communication
Go
96
star
20

obs-wormhole

Supercharge OBS with WebRTC. Remote WebRTC Sources and Serverless Broadcasting
Go
95
star
21

datachannel

A Go implementation of WebRTC Data Channels
Go
75
star
22

transport

Transport testing for Pion
Go
63
star
23

explainer

Explainer parses WebRTC Offers/Answers then provides summaries and suggestions
Go
43
star
24

11LiveChat

Another one-one live chatroom using pion webrtc with sfu mode
Go
40
star
25

udp

Please use github.com/pion/transport/v2/udp instead
Go
35
star
26

demo-conference

A simple web conferencing application built using Pion
HTML
29
star
27

webrtc-voicemail

Voicemail.... for the web! Create voicemails via WebRTC and Transcribe them.
Go
28
star
28

webrtc-zero-downtime-restart

A playground to make WebRTC easier to deploy, safer and more robust
Go
21
star
29

webrtc-v3-design

EXPERIMENTAL - new API proposals and discussions
Go
17
star
30

signaler

The Pion Signaler
Go
15
star
31

dcnet

net interfaces over DataChannels
Go
14
star
32

portmap

An implementation of UPnP-IGD, NAT-PMP and PCP for configuring port-forwarding
Go
13
star
33

logging

The logging library used by Pion
Go
7
star
34

codec

Go wrappers of multiple codecs to be go gettable
Go
7
star
35

.goassets

Asset files automatically deployed to Go package repositories
Shell
7
star
36

turnc

RFC 5766 TURN client implementation in go
Go
6
star
37

producer

File to webrtc.Track playback
Go
5
star
38

website

Pion public website
HTML
5
star
39

talks

Content for talks given by Pion WebRTC developers
CSS
5
star
40

pion-browser-client

Browser Client for Pion
JavaScript
5
star
41

zapion

uber-go/zap âš¡ backended pion logger
Go
4
star
42

msapi

media stream api for webrtc !
Go
4
star
43

randutil

Helper library for cryptographic and mathmatical randoms
Go
4
star
44

pkg

Shared Go libraries used by Pion products
Go
3
star
45

simulnet

A net implementation that enables simulations
2
star
46

ci-sandbox

CI testing sandbox
Go
1
star
47

ion-admin

This is ion's manager
1
star
48

.github

Default community health files
1
star
49

rtpio

Go
1
star