testNetworkConnectivity(videoTrack)
Checks whether a stable connection can be established with Daily’s TURN servers. Useful for precall checks before a room is joined. The test times out automatically after 30 seconds.
Why pass a video track?
Chrome and Firefox can test network connectivity without a media track, but Safari requires one. To ensure the test works across all browsers,videoTrack is required.
Parameters
A video track used to establish the test connection. You can obtain one from
call.participants().local.tracks.video.persistentTrack after calling startCamera().Return value
ReturnsPromise<DailyNetworkConnectivityTestStats>.
'passed'— connection to Daily’s TURN servers was successful'failed'— connection could not be established; advise users to check their network or contact their administrator'aborted'— test was stopped viaabortTestNetworkConnectivity()before completion