Suggestions

close search

Developing with the OpenTok Plugin

The OpenTok Plugin for Internet Explorer enables OpenTok sessions in Internet Explorer. The plugin works in Internet Explorer 10 and 11.

The OpenTok Plugin for Internet Explorer is installed automatically by the when you load OpenTok.js in a browser. However, on a machine where automatic updates are prevented, you will have to manually install the plugin (using admin privileges):

OpenTok.js version OpenTok Plugin version
2.10.0 - 2.10.2 2.0.0.95
2.9.2 - 2.9.4 1.2.1.74
2.9.0, 2.9.1 1.2.0.71
2.8.0 - 2.8.4 1.1.0.50

For information on downloading the plugin for manual installation, contact support@tokbox.com.

HTML settings for plugin support

The plugin does not work in Internet Explorer compatibility mode. You must add this to the HTML page:

<!DOCTYPE HTML>

Or this:

<meta http-equiv="X-UA-Compatible" content="IE=10" />

Do not use the following setting (emulation mode):

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Testing your app

Try running your OpenTok-powered app using Internet Explorer. If you have not installed the OpenTok Plugin for Internet Explorer, you will see the following dialog box:

If there are issues running your app in Internet Explorer 10 and 11, you can block access to OpenTok until you have fixed them:

// Detect whether this browser is IE
var isNotIE = function isNotIE () {
  var userAgent = window.navigator.userAgent.toLowerCase(),
      appName = window.navigator.appName;
 
  return !( appName === 'Microsoft Internet Explorer' ||                            // IE <= 10
           (appName === 'Netscape' && userAgent.indexOf('trident') > -1) ); // IE >= 11
};
 
// If the browser is not IE, and it meets the minimum system requirements
// for the OpenTok platform, then create your app
if (isNotIE() && OT.checkSystemRequirements()) {
  var session = OT.initSession('your apiKey', 'your sessionId');
  // ... continue with your OpenTok application
}

See the list of known issues in OpenTok.js.