src/widgets/HtmlPlayer.js
author durandn
Fri, 18 Sep 2015 14:39:45 +0200
changeset 1049 4e8b3df6e5be
parent 1013 392ddcd212d7
child 1072 ac1eacb3aa33
permissions -rw-r--r--
Added support for running a function before the draw() function of a widget, for example when a widget needs to fetch additional user informations that aren't provided by the metadatas

IriSP.Widgets.HtmlPlayer = function(player, config) {
    IriSP.Widgets.Widget.call(this, player, config);
};

IriSP.Widgets.HtmlPlayer.prototype = new IriSP.Widgets.Widget();


IriSP.Widgets.HtmlPlayer.prototype.defaults = {
};

IriSP.Widgets.HtmlPlayer.prototype.draw = function() {

    IriSP.htmlPlayer(this.media, this.$, this);
    
};