janus-gateway/

directory
v3.0.0-...-16ff39d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT

README

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/pion/webrtc-example-applications/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/pion/webrtc-example-applications/janus-gateway/video-room

OSX

brew install pkg-config
https://gstreamer.freedesktop.org/data/pkg/osx/

export PKG_CONFIG_PATH=/Library/Frameworks/GStreamer.framework/Versions/Current/lib/pkgconfig

Ubuntu

apt install pkg-config
apt install libgstreamer*

Build

cd example/janus-gateway/video-room
go build

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.

Directories

Path Synopsis
example of how to connect Pion and Janus
example of how to connect Pion and Janus
example of how to connect Pion and Janus
example of how to connect Pion and Janus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL