Mediasoup integration
Give PeerMetrics your mediasoup device details so it can attribute transport behavior and connection state correctly across your sessions.PeerMetrics fits into the setup layer rather than replacing your flow. Register your mediasoup device metadata, then keep using your usual transports and producers.
Quick setup
- Initialize PeerMetrics for the user and conference.
- Register the Mediasoup SDK integration.
- Keep your normal call setup flow.
How it works
- Initialize PeerMetrics for the current user and conference.
- Create or reuse your mediasoup Device instance.
- Pass the device metadata into addSdkIntegration().
- Continue with your normal transport and producer flow afterward.
const peerMetrics = new PeerMetrics({
apiKey: 'YOUR_API_KEY',
userId: user.id,
conferenceId: roomId
})
peerMetrics.addSdkIntegration({
mediasoup: {
flag: device.flag,
name: device.name,
version: device.version,
handlerName: device.handlerName || device._handlerName
}
})
Based on the PeerMetrics SDK integration docs.
Create rock solid products
The tool that every team needs to build the perfect WebRTC integration-
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.
-
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.
-
Make sure your support team shines
Your support team should never guess what happened. Give them the tools to fix problems in real time.