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.
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
Customization
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
Thresholds
Metric | Good | Mediocre | Bad |
---|---|---|---|
Bandwidth estimation | Above 800kbps | 500-800kbps | Below 500kbps |
Incoming bitrate | Above 600kbps | 300-600kbps | Below 300kbps |
Outgoing bitrate | Above 600kbps | 300-600kbps | Below 300kbps |
Roundtrip time | Below 200ms | 200-500ms | Above 500ms |
Incoming packet loss | Below 1% | 1-4% | Above 4% |
Outgoing packet loss | Below 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.
Explainer Video
Here is an explanation of how the VIDEO P2P test works: