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.
https://tokbox.com/developer/sdks/js/reference/Subscriber.html#getRtcStatsReport
https://tokbox.com/developer/sdks/js/reference/Subscriber.html#getStats
https://tokbox.com/developer/sdks/js/reference/Publisher.html#getRtcStatsReport
https://tokbox.com/developer/sdks/js/reference/Publisher.html#getStats
Articles in this section
- Migrating Video REST API from OpenTok to Unified
- Video Client SDK Changes from OpenTok to Unified
- How to Migrate from OpenTok Server SDK to Unified Server SDK
- Credential Differences Between OpenTok and Unified Environments
- In which Regional Media Zones can I use Experience Composer?
- How do I monitor Video API call quality in real-time?
- JWT Tokens in the TokBox and Unified Environments
- Android SDK 2.28.2 error when using the application context
- What happens if your session lasts more than 8 hours?
- Updates to using the Vonage Media Library in Native SDKs from version 2.27.x onwards