opentok / opentok-network-test

Sample app to test network connectivity and statistics (bps, packet-lost)
MIT License
112 stars 56 forks source link

Fix bug when missing a camera #28

Closed davemun closed 7 years ago

davemun commented 7 years ago

Previously, the test would test for both audio and video no matter the situation (which is fine), but when the test rig was missing a video capture device (no webcam, laptop lid closed) it would try to calculate stats for video anyway, even though the relevant video stats did not exist, which made the script prematurely end. (this is not fine)

This PR gets the script to check for what media types are actually active in the subscriber before checking the stats for it, and adds an output case to the UI where it will inform the user of the missing video capture device, but also still check the audio stats in that scenario.