Created
December 10, 2013 14:16
-
-
Save maracuja/7891215 to your computer and use it in GitHub Desktop.
This is for when I have to come back and integrate custom analytics into my ooyala player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debug = {}; | |
OO.ready(function() { | |
OO.Player.create( | |
'ooyalaplayer', | |
'{{ request.GET.ocid }}', | |
{ | |
"enableChannels": true, | |
"wmode" : "transparent", | |
onCreate: function(player) { | |
console.log('hi'); | |
debug = player; | |
player.subscribe(OO.EVENTS.PLAYBACK_READY, 'something', function() { | |
console.log("Ready for playback!"); | |
}); | |
player.subscribe(OO.EVENTS.PLAYING, 'something', function() { | |
console.log("ZOMG PLAYING!"); | |
}); | |
} | |
} | |
); | |
// debug.subscribe(OO.EVENTS.PLAYBACK_READY, 'something', function() { | |
// console.log("Ready for playback!"); | |
// }); | |
// debug.subscribe(OO.EVENTS.PLAY, 'something', function() { | |
// console.log("ZOMG PLAYING!"); | |
// }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://support.ooyala.com/developers/documentation/reference/player_v3_dev_mbapi.html