example-webrtc-applications

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

  • 所有者: pion/example-webrtc-applications
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

The following are a collection of example applications built by Pion users. These applications show real world usage of Pion,
and should serve as a good starting point for your next project. For more minimal examples check out examples in the Pion WebRTC repository

If you have a request please make an issue, we also love contributions more examples are always welcome.

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

Examples

  • GoCV Receive: Example gocv-receive shows how to receive media using Pion and then do motion detection with GoCV.
  • Gstreamer Receive: Example gstreamer-receive shows how to receive media from the browser and play it live. This example uses GStreamer for rendering.
  • Gstreamer Send: Example gstreamer-send shows how to send video to your browser. This example uses GStreamer to process the video.
  • Gstreamer Send Offer: Example gstreamer-send-offer is a variant of gstreamer-send that initiates the WebRTC connection by sending an offer.
  • Janus Gateway: Example janus-gateway is a collection of examples showing how to use Pion WebRTC with janus-gateway.
  • SFU Websocket: The SFU example demonstrates how to broadcast a video to multiple peers. A broadcaster uploads the video once and the server forwards it to all other peers.
  • Save to WebM: Example save-to-webm shows how to receive audio and video using Pion and then save to WebM container.
  • Twitch: Example twitch shows how to send audio/video from WebRTC to https://www.twitch.tv/ via RTMP.
  • C DataChannels Example c-data-channels shows how you can use Pion WebRTC from a C program
  • Snapshot Example snapshot shows how you can convert incoming video frames to jpeg and serve them via HTTP.

Usage

We've made it easy to run the browser based examples on your local machine.

  1. Build and run the example server:

    go get github.com/pion/example-webrtc-applications
    cd $GOPATH/src/github.com/pion/example-webrtc-applications
    go run examples.go
    
  2. Browse to localhost to browse through the examples.

Note that you can change the port of the server using the --address flag.

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

主要指标

概览
名称与所有者pion/example-webrtc-applications
主编程语言Go
编程语言HTML (语言数: 7)
平台
许可证MIT License
所有者活动
创建于2019-04-07 02:43:21
推送于2025-06-01 01:43:24
最后一次提交2025-05-26 22:50:26
发布数7
最新版本名称v3.0.5 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数1.2k
关注者数28
派生数267
提交数357
已启用问题?
问题数83
打开的问题数27
拉请求数179
打开的拉请求数8
关闭的拉请求数64
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?