opentok / opentok-network-test

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

Minimum value for qualityTestDuration #29

Open nthieu90 opened 7 years ago

nthieu90 commented 7 years ago

Hello, In sample, the qualityTestDuration =10. is it the minimum time? if not, how do we know the minimun qualityTestDuration to make sure network stable and check quality.

 [_networkTest runConnectivityTestWithApiKey:kApiKey
                                      sessionId:kSessionId
                                          token:kToken
                             executeQualityTest:YES
                            qualityTestDuration:10
                                       delegate:self];
dispatch_time_t delay = dispatch_time(DISPATCH_TIME_NOW,
                                              _qualityTestDuration * NSEC_PER_SEC);
        dispatch_after(delay,dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0),^{

            [self checkQualityAndDisconnectSession];
        });

Thansk!