Support & information center

VIDEO P2P widget

The Video P2P Widget tests the video connection and quality in a peer-to-peer setup where the user’s browser is connected using a WebRTC peer connection to a remote peer hosted on one of our testingRTC machines. This can be used to understand the connection quality for WebRTC video calls in both incoming and outgoing directions.

It should be noted that this is a premium widget requiring a testingRTC subscription.

This test gives a general indication about the connection quality in both directions for video sessions. It is conducted by running a real video call between the local user’s device and a remote browser hosted in our cloud service, collecting WebRTC metrics. It is suitable for testing any video service where the media server cannot be used or relied upon.

Estimated run time: 45 seconds


During onboarding we can:

  • Increase or reduce the duration of the test
  • Decide which data center to use for the remote peer
  • Configure for receive only mode
  • The sample uses Twilio’s SDK. This can be modified to any other peer-to-peer service
  • Change the timing of data collection (default is wait 5 seconds, measure the next 30 seconds)
  • Make use of real camera or a virtual camera

Widget Logging

The VIDEO P2P widget logs more information than is being displayed. This information includes:

  • Incoming and outgoing quality metrics
  • Network type of the connection
  • Type of connection (direct or routed; over UDP, TCP or TLS)
  • IP+port pair of the connection established


The following table outlines the default threshold for the values collected. These thresholds are customizable.

Bandwidth estimationAbove 800kbps500-800kbpsBelow 500kbps
Incoming bitrateAbove 600kbps300-600kbpsBelow 300kbps
Outgoing bitrateAbove 600kbps300-600kbpsBelow 300kbps
Roundtrip timeBelow 200ms200-500msAbove 500ms
Incoming packet lossBelow 1%1-4%Above 4%
Outgoing packet lossBelow 1%1-4%Above 4%

When to use?

The Video P2P widget is useful for video scenarios. It offers an accurate understanding of the network connection quality for video calls.

Here is an explanation of how the VIDEO P2P test works:

Was this article helpful?

Related Articles