• Stars
    star
    935
  • Rank 47,207 (Top 1.0 %)
  • Language
    Go
  • License
    MIT License
  • Created about 5 years ago
  • Updated about 2 months ago

Reviews

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

Repository Details

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

Examples WebRTC Applications

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 a conference system that uses WebSocket for signaling. It also includes a flutter client for Android, iOS and Native.
  • 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

More Repositories

1

webrtc

Pure Go implementation of the WebRTC API
Go
12,568
star
2

turn

Pion TURN, an API for building TURN clients and servers
Go
1,674
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

codec

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

logging

The logging library used by Pion
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