In tokbox , Is it possible to detect browsers and throw a not supported page.
But in tokbox demo ideo page they are doing this but i searched on their document but can't find how to do this stuff. can anyone help me on this.
In tokbox , Is it possible to detect browsers and throw a not supported page.
But in tokbox demo ideo page they are doing this but i searched on their document but can't find how to do this stuff. can anyone help me on this.
On
Opentok has better APIs now:
You can use network-test.
otNetworkTest.testQuality(null, function updateCallback() {
// process intermediate results
}).then(results) {
// Display UI based on results
}).catch(error, results) {
switch (error.name) {
case ErrorNames.UNSUPPORTED_BROWSER:
// Display UI message about unsupported browser
break;
case ErrorNames.CONNECT_TO_SESSION_NETWORK_ERROR:
// Display UI message about network error
break;
default:
console.error('Unknown error .');
}
});
I think you might be looking for the below code
Let me know if you need further help