Agora + PeerMetrics

Agora integration

Wrap your Agora client with PeerMetrics to inspect connection quality and transport events while keeping your join and publish logic intact.

Initialize PeerMetrics before joining the channel, pass the Agora client into the integration helper, then proceed as usual.

PeerMetrics SDK

Quick setup

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

How it works

  1. Initialize PeerMetrics before joining the Agora channel.
  2. Create your AgoraRTC client instance.
  3. Pass the client into addSdkIntegration().
  4. Join, publish, and subscribe as you normally would.
Example
const client = AgoraRTC.createClient({ mode: 'rtc', codec: 'vp8' })

const peerMetrics = new PeerMetrics({
  apiKey: 'YOUR_API_KEY',
  userId: user.uid,
  conferenceId: channelName
})

peerMetrics.addSdkIntegration({
  agora: {
    client
  }
})

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.