Skip to content

Pure Go implementation of the WebRTC API

License

Notifications You must be signed in to change notification settings

UI-RayanWang/pion-webrtc

This branch is 481 commits behind pion/webrtc:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d816c3 · Apr 21, 2022
Apr 13, 2022
Jan 18, 2022
Apr 12, 2022
Apr 20, 2022
Apr 12, 2022
Feb 6, 2022
Apr 4, 2019
Aug 11, 2018
Mar 2, 2022
Nov 7, 2020
Apr 13, 2022
Jul 17, 2020
May 18, 2018
Apr 17, 2022
Jan 31, 2022
Jan 18, 2022
Jan 31, 2022
Nov 20, 2021
Dec 30, 2020
Feb 18, 2019
Jan 18, 2022
Jan 18, 2022
Jul 15, 2020
Jan 18, 2022
Jun 10, 2020
Jan 18, 2022
Dec 30, 2020
Sep 15, 2021
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Nov 3, 2021
Sep 26, 2019
Mar 7, 2019
Nov 14, 2019
Feb 18, 2019
Feb 18, 2019
Feb 18, 2019
Feb 18, 2019
Sep 13, 2020
Sep 13, 2020
Feb 7, 2022
Feb 8, 2022
Jan 18, 2022
Oct 18, 2019
Feb 18, 2019
Feb 25, 2022
Dec 23, 2020
Apr 18, 2022
Apr 21, 2022
Apr 21, 2022
Jan 18, 2022
Sep 30, 2020
Sep 30, 2020
Aug 21, 2020
Aug 21, 2020
Jun 25, 2019
Sep 30, 2020
Jun 15, 2019
Jun 15, 2019
Jun 15, 2019
Jun 15, 2019
Jun 15, 2019
Aug 21, 2020
Jun 15, 2019
Apr 21, 2022
Jan 18, 2022
Mar 10, 2020
Jun 15, 2019
Jun 15, 2019
Jun 15, 2019
Jun 15, 2019
Oct 26, 2021
Jun 15, 2019
Sep 30, 2020
Jun 15, 2019
Jun 15, 2019
Jun 15, 2019
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Feb 8, 2022
Apr 20, 2022
Dec 30, 2020
Jun 15, 2019
Jun 28, 2020
Jun 28, 2020
Jan 18, 2022
Jan 18, 2022
Feb 7, 2022
Apr 12, 2022
Feb 2, 2022
Sep 30, 2020
Apr 15, 2020
Jun 15, 2019
Feb 18, 2019
Jul 1, 2021
Dec 3, 2020
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Jan 14, 2021
Feb 2, 2022
Jan 18, 2022
Feb 2, 2022
Apr 18, 2022
Sep 13, 2020
Feb 25, 2022
Feb 25, 2022
Feb 8, 2022
Aug 19, 2020
Feb 18, 2019
Nov 16, 2021
Sep 30, 2020
Dec 30, 2020
Feb 18, 2019
Dec 4, 2020
Jul 30, 2021
Oct 5, 2021
Feb 18, 2019
Feb 18, 2019
Jul 24, 2020
Jan 17, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Feb 25, 2022
Jan 18, 2022
Feb 25, 2022
Dec 6, 2020
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Apr 13, 2022
Sep 26, 2019
Nov 15, 2020
Feb 18, 2019
Jan 18, 2022
Feb 8, 2022
Jan 18, 2022
Feb 18, 2019
Feb 18, 2019
Feb 25, 2022
Jan 18, 2022
Dec 30, 2020
Jan 18, 2022
Jan 9, 2021
Jan 9, 2021
Feb 16, 2021
Feb 16, 2021
Apr 21, 2022
Jan 18, 2022
Apr 21, 2022
Sep 30, 2020
Sep 30, 2020
Feb 25, 2022
Nov 15, 2020
Jan 18, 2022
Jan 18, 2022
Feb 25, 2022
Apr 5, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Dec 7, 2020
Jan 14, 2021

Repository files navigation

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 Codacy Badge 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.

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

About

Pure Go implementation of the WebRTC API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.1%
  • Other 0.9%