Can I directly access the RTCPeerConnection object for monitoring? Can I directly access the RTCPeerConnection object for monitoring?

Can I directly access the RTCPeerConnection object for monitoring?

Maria Scieranska

Question

Can I directly access the RTCPeerConnection object in WebRTC through the Javascript SDK for monitoring and quality control.

Applies To

  • Vonage Video API
  • Javascript SDK

Answer

No.  The Javascript SDK does not expose the underlying RTCPeerConnection objects through the API.

Additional Information

For quality monitoring you can use the getStats() and getRtcStatsReport() APIs of the subscriber and publisher objects.  These can provide detailed stream statistics for monitoring.

Reference - Subscriber - getRtcStatsReport()

Reference - Subscriber - getStats()

Reference - Publisher - getRtcStatsReport()

Reference - Publisher - getStats()