Skip to content

Instantly share code, notes, and snippets.

@steverandy
Created July 11, 2014 02:51
Show Gist options
  • Save steverandy/32ebed89cc1f209c294e to your computer and use it in GitHub Desktop.
Save steverandy/32ebed89cc1f209c294e to your computer and use it in GitHub Desktop.
player.on("firstplay", (function(_this) {
return function(ev) {
var $target;
$target = $(ev.target);
return $target.find("video").eq(0).attr("controls", true);
};
})(this));
player.on("adend", (function(_this) {
return function(ev) {
return _this.player.play();
};
})(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment