Janus + PeerMetrics

Janus integration

Register your Janus plugin handle with PeerMetrics so the RTCPeerConnection used by Janus can be monitored throughout the call lifecycle.

The main hook is the plugin handle. Once PeerMetrics knows about it, you can keep the rest of your Janus attach, publish, and subscribe flow unchanged.

PeerMetrics SDK

Quick setup

  • Initialize PeerMetrics for the user and conference.
  • Register the Janus SDK integration.
  • Keep your normal call setup flow.

How it works

  1. Initialize PeerMetrics before attaching or joining the Janus plugin.
  2. Create the Janus session and plugin handle as usual.
  3. Pass the plugin handle into addSdkIntegration().
  4. Optionally label the SFU instance for clearer reporting later.
Example
const peerMetrics = new PeerMetrics({
  apiKey: 'YOUR_API_KEY',
  userId: user.id,
  conferenceId: roomId
})

peerMetrics.addSdkIntegration({
  janus: {
    pluginHandle,
    serverId: 'janus-use1-a',
    serverName: 'Janus US-East'
  }
})

Based on the PeerMetrics SDK integration docs.

Create rock solid products

The tool that every team needs to build the perfect WebRTC integration
  • Guess work in product
    Don't leave your development to guess work

    Crafting the perfect product is a challenge on its own. Adding WebRTC in the mix makes it even harder.

    Make sure you and your team have all the data you need to build the best video and audio calling product.

  • Developer relaxing
    Fix problems before they appear

    Even with a great product, network conditions change. Make sure you have the tools to adapt and resolve issues quickly.

  • Happy support team
    Make sure your support team shines

    Your support team should never guess what happened. Give them the tools to fix problems in real time.