webrtc README

The project's README from github.com/pion/webrtc. As one markdown file: README.md.

Pion WebRTC
Pion WebRTC

A pure Go implementation of the WebRTC API

Pion WebRTC Sourcegraph Widget join us on Discord Follow us on Bluesky Twitter Widget
GitHub Workflow Status Go Reference Coverage Status Go Report Card License: MIT


New Release

Pion WebRTC v4.0.0 has been released! See the release notes to learn about new features and breaking changes.

If you aren't able to upgrade yet check the tags for the latest v3 release.

We would love your feedback! Please create GitHub issues or Join the Discord to follow development and speak with the maintainers.


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 Discord we are always looking to expand it.

Now go build something awesome! Here are some ideas to get your creative juices flowing:

Need Help?

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.

Pion has an active community on Discord. Please ask for help about anything, questions don't have to be Pion specific! Come share your interesting project you are working on. We are here to support you.

One of the maintainers of Pion Sean-Der is available to help. Schedule at siobud.com/meeting He is available to talk about Pion or general WebRTC questions, feel free to reach out about anything!

Features

PeerConnection API

Connectivity

DataChannels

Media

Security

Pure Go

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 Discord.

Follow the Pion Bluesky or 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

webrtc (pion/webrtc)

Searching Database…

16.8K ·GitHub
这是什么?WebRTC API 的纯 Go 实现:Go 程序可以与浏览器及其他对端实时交换音频、视频和数据,完全不依赖 Cgo 和原生 WebRTC 库。
这是导入到自己代码里用的库,还是一个现成的应用?这是一个导入到你自己的 Go 项目中使用的库,实现了标准的 PeerConnection API(webrtc-pc 和 webrtc-stats)。仓库还附带了基于它构建的多个独立示例应用。
怎么把它加到我的 Go 项目里?通过 Go Modules:设置 GO111MODULE=on,然后导入 github.com/pion/webrtc/v4——/v4 后缀是必需的。仓库里的示例应用完整展示了常见的用法。
真的全部都是纯 Go 吗?有一个例外:通过 getUserMedia 捕获本地摄像头或麦克风需要 Cgo。其余部分——ICE、DTLS、SRTP、媒体打包——完全不依赖任何 C 库。
它能在哪些平台上运行?几乎任何 Go 能编译的地方都行:Windows、macOS、Linux、FreeBSD、iOS 和 Android,外加浏览器中的 WASM。支持的架构包括 386、amd64、arm、mips 和 ppc64。
如果暂时还升级不到 v4 怎么办?v4.0.0 包含破坏性变更,但 v3 仍然可用——如果暂时无法升级,README 里指出了最新 v3 版本对应的标签。
编译和测试的速度快吗?非常快:在一台老旧的 Core i5 上,play-from-disk 示例只用了 0.66 秒就编译完成,整个测试套件大约 1 分 17 秒就跑完了。
它支持 simulcast 和带宽估计吗?支持——媒体栈包含 simulcast、SVC、NACK、发送方/接收方报告、传输层拥塞控制反馈和带宽估计,GCM 套件还提供硬件加速。
有商业支持吗?有——除了免费的 Discord 社区、FAQ 和 GoDoc 参考文档之外,团队还通过 [email protected] 提供商业支持。
Creator
pion
Size
6.9 MB
Stars
16.8K
Age
8y
Commits · 90 Days