Vonage + PeerMetrics

Vonage integration

Use the Vonage/OpenTok session object with PeerMetrics to instrument publisher and subscriber peer connections without changing your normal session flow.

Create your session normally, then hand it to PeerMetrics before the rest of the connect and publish flow continues.

PeerMetrics SDK

Quick setup

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

How it works

  1. Initialize PeerMetrics before connecting the user to the session.
  2. Create the Vonage session with OT.initSession().
  3. Call addSdkIntegration() with the session instance.
  4. Continue with your normal connect and publish flow.
Example
const session = OT.initSession(apiKey, sessionId)

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

peerMetrics.addSdkIntegration({
  vonage: {
    session
  }
})

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.