Created
May 17, 2012 09:57
-
-
Save instanceofjamie/2717874 to your computer and use it in GitHub Desktop.
ITV Player include...
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
drupal_add_js('function onready() { | |
console.log(ItvPlayer); | |
var params = new ItvPlayer.Media.PlaylistParameters(); | |
params.videoId = 287113; | |
var element = document.getElementById("player"); | |
var player = ItvPlayer.Media.createPlayer(element, ItvPlayer.Media.PlayerType.Flash, params); | |
player.play(); | |
} | |
ItvPlayer.addEventListener("ready",onready,false);','inline'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment