Welcome to version 2.8 of the OpenTok.js library.
If you have any questions, concerns, feedback, please let us know at our OpenTok Community.
For details on the OpenTok.js API, see the OpenTok.js library reference.
HTTPS requirement in Chrome — As of Chrome 47, due to new security policies, all OpenTok-powered web applications will have to be served from secured (HTTPS) sites to access the camera and microphone. Unsecured (HTTP) sites cannot publish audio-video streams using the OpenTok platform. However, pages served over http://localhost can still access the camera and microphone (for local testing).
64 bit support for the OpenTok Plugin for Internet Explorer — The OpenTok Plugin for Internet Explorer now supports in 64-bit mode). For information on testing your app with the OpenTok Plugin for Internet Explorer, see Developing with the OpenTok Plugin.
Discontinued support for Internet Explorer 8 — We have discontinued support for IE 8 in the OpenTok plugin for Internet Explorer.
Screen-sharing extensions for Firefox — Firefox now requires that extensions, including screen-sharing extensions for OpenTok, be signed. For more infomation, see see Developing a Firefox screen-sharing extension and this page on extension signing at mozilla.org.
Archive length now 120 minutes — The maximum duration of OpenTok archives has increased to 120 minutes. Also, we have fixed a couple of bugs in composed archives (audio and video had sometimes been out of sync, and some video was missing). For more information, see the OpenTok archiving developer guide.
TLS support added to OpenTok TURN servers. This fixes media streaming for clients behind network firewalls that block non-TLS traffic over port 443.
Access to the video element of a Publisher or Subscriber. You can now disable the
default user interface elements for Publishers and Subscribers and access the HTML
video element directly. When publishing or subscribing to a stream, set the
insertDefaultUI property to
when calling the OT.initPublisher() or
Session.subscribe() method and set an
event listener for the
videoElementCreated event dispatched by the Publisher
or Subscriber object. The
element property of the event is a reference to
video element (or in Internet Explorer the
containing the video) is created. For more information, see
Directly accessing the video
element for a Publisher or Subscriber.
New new version of the Firefox screen-sharing extension. This new version,
available at the
screensharing-extensions repo, adds support for the
property of the
OT.checkScreenSharingCapability() callback. In Firefox (using the new version of the
screen-sharing extension), this property is set to
true if the extension is
installed and set to work in the current page's domain. For details,
see the Screen sharing developer
The OpenTok.js library is currently supported in:
The OpenTok.js library uses port 443. Port 443 must be open on the client network.
Repositioning and resizing Publisher and Subscriber elements. Do not reparent a
a Publisher or Subscriber in the HTML DOM. You can reposition these elements by changing
style properties. See
on resizing and repositioning videos.
Video streaming is prevented on networks that have firewalls that use authenticated proxies. This is due to a core issue with the current underlying WebRTC implementation. (See this Chromium bug report.)
One Publisher in the OpenTok Plugin for Internet Explorer. You can only add one Publisher (within all browser windows and tabs).
Cannot hide a Publisher or Subscriber in the OpenTok Plugin for Internet Explorer.
Attempting to hide the a Publisher or Subscriber (by setting
"hidden") causes Internet Explorer
Issue subscribing to your own stream in Internet Explorer. In Internet Explorer, you cannot subscribe to a stream published by your own client.
Sessions disconnect unexpectedly in Internet Explorer 9.
We have seen this issue occur occasionally if there are other clients publishing streams in
the session when the client using Internet Explorer connects. If you experience this problem,
please let us know at the TokBox Plugin
forum. (Please provide details, including the version of Windows, the version of Internet
Explorer, the version of the Plugin, the URL of the app, and what was led up to the session
disconnecting. You can get the version of the plugin by entering
in the console.)
Issue updating the OpenTok Plugin for Internet Explorer. When updating older versions of the OpenTok plug-in for Internet Explorer (prior to 2.6.0), users will be asked to install a new plug-in (instead of update). Installing the new plug-in will cause the update to take effect.
Setting the frame rate does not work in Firefox on MacOS when using the built-in
FaceTime camera. Setting the
frameRate option when calling
OT.initPublisher() has no effect.
This is the Mozilla bug
report for the issue.
Setting the frame rate does not work in the OpenTok Plugin for
Internet Explorer. Setting the
frameRate option when calling
OT.initPublisher() has no effect.
Issues setting video source for a Publisher in Firefox. In an page loaded via HTTPS, if the user clicks "Always Share" when granting access to the camera, you can only use that camera. You cannot set the video source to another camera.
The OpenTok plugin for Internet Explorer does not work in sandboxed iframes. This is an intentional limitation of the browser. The browser blocks plugin content inside a sandboxed frame.
WebRTC is a peer-to-peer protocol, and it is possible that connections will fail to connect. The most common cause
for failure is a firewall that the protocol cannot traverse. When OpenTok detects this failure, the TB object dispatches
exception event object, with the
code property set to 1013.
You cannot publish video on a page loaded from a file:// URL, due to browser security limitations. You need to load the page from an http:// or https:// URL. Note also, that Chrome requires you to load a page from an https:// URL (although you can use http to test a localhost URL in Chrome). For example, you can test a page from http://localhost if you have a web server set up on your local machine.
64 bit support for in Internet Explorer. The OpenTok Plugin for Internet Explorer now supports 64-bit mode.
See the reference documentation for the OpenTok.js library.
To see sample code and to read more information on using the OpenTok.js library, see the OpenTok Tutorials and Examples page.
For documentation on the OpenTok server-side libraries, see the OpenTok server-side libraries page.
Also check out the OpenTok Help Center.
We'd love to hear from you! If you have any issues or bugs, you can report them to us at firstname.lastname@example.org.