Skip to content

Instantly share code, notes, and snippets.

View aullman's full-sized avatar

Adam Ullman aullman

  • Sydney, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aullman on github.
  • I am aullman (https://keybase.io/aullman) on keybase.
  • I have a public key whose fingerprint is 562E 644D AEC6 20C5 DA4D B030 2BE7 1783 9BF0 C41D

To claim this, I am signing this object:

@aullman
aullman / simulcastAPI.md
Last active August 29, 2015 14:20
Example API to support Simulcast

The Subscriber has maxResolution and maxFrameRate properties:

  • maxResolution - Object containing a width and a height property. When set the Subscriber will try to use a resolution that falls within those values.
  • maxFrameRate - The maximum frame rate the Subscriber should use. This is an integer value.

You can initialise these values by passing them to the session.subscribe method eg.

var subscriber = session.subscribe(stream, subscriberEl, {
 maxResolution: {
@aullman
aullman / gist:084e1508f957cfa4e868
Created August 27, 2014 04:28
Sample code for blocking IE in an OpenTok Application
// Detect whether this browser is IE
var isNotIE = function isIE () {
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,