Streaming
Comprehensive guide to streaming with JanusScaler.
What is Januscaler?
JanusScaler is an advanced WebRTC load balancer designed to scale and distribute WebRTC streaming traffic. In this guide, we will explore the architecture and use cases of JanusScaler in the context of streaming.
Configure Your Streaming Session
index.js
const janus = new Janus({
server: "wss://janus.example.com/ws",
success: function() {
janus.attach({
plugin: "janus.plugin.streaming",
success: function(pluginHandle) {
console.log("Plugin attached: ", pluginHandle.getId());
},
error: function(error) {
console.error("Error attaching plugin: ", error);
}
});
},
error: function(error) {
console.error("Error initializing Janus: ", error);
}
});
Choosing the Right Codec and Bitrate for Your Stream
Setting Up the Streaming API: A Comprehensive Guide
index.js
{
"streaming": {
"id": 1,
"video": true,
"audio": true,
"video_bitrate": 1024,
"audio_bitrate": 64
}
};