Files
webrtc/examples/janus-gateway
Sean DuBois eec8f43b0c Extend gstreamer-src so src is an argument
This allows us to give better examples with webcam + file input

Relates to #206 #209
2018-12-25 14:16:11 -05:00
..
2018-12-03 23:12:23 -08:00

janus-gateway

janus-gateway is a collection of examples showing how to use pion-WebRTC with janus-gateway

These examples require that you build+enable websockets with Janus

streaming

This example demonstrates how to download a video from a Janus streaming room. Before you run this example, you need to run plugins/streams/test_gstreamer_1.sh from Janus.

You should confirm that you can successfully watch Opus/VP8 live stream coming from gstreamer (live) in the stream demo web UI

Running

run main.go in github.com/pions/webrtc/examples/janus-gateway/streaming

If this worked you will see the following.

Connection State has changed Checking
Connection State has changed Connected
Got VP8 track, saving to disk as output.ivf

You will see output.ivf in the current folder.

video-room

This example demonstrates how to stream to a Janus video-room using pion-WebRTC

Running

run main.go in github.com/pions/webrtc/examples/janus-gateway/video-room

If this worked you should see a test video in video-room 1234

This is the default demo-room that exists in the sample configs, and can quickly be accessed via the Janus demos.