0

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.

7
  • Can you link the page where they detect browsers? Nov 20, 2014 at 10:36
  • tokbox.com/platform this is the link they used... check in lower version of browsers or load in ipad or iphone browsers Nov 20, 2014 at 10:37
  • I worked with it and it printed a modal on the screen when the browser doesn't support WebRTC. I had this feature free because Tokbox itself check it. Nov 20, 2014 at 10:54
  • can you share what you have done? Nov 21, 2014 at 10:23
  • Did you try this example? Nov 21, 2014 at 10:41

2 Answers 2

2

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 .');
    }
});
1

I think you might be looking for the below code

OT.checkScreenSharingCapability(function(response) {
  if (!response.supported || response.extensionRegistered === false) {
    // This browser does not support screen sharing
  } else if (response.extensionInstalled === false) {
    // prompt to install the response.extensionRequired extension
  } else {
    // Screen sharing is available
  }
});

Let me know if you need further help

1
  • Or rather checkSystemRequirements for webRTC?
    – pronebird
    Nov 12, 2017 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.