Embed: dynamically load player js only if required
This commit is contained in:
parent
43d8da036a
commit
8143d6af05
21 changed files with 532 additions and 39724 deletions
|
@ -14,11 +14,11 @@ mistplayers.myplayer = {
|
|||
};
|
||||
var p = mistplayers.myplayer.player;
|
||||
p.prototype = new MistPlayer();
|
||||
p.prototype.build = function (options) {
|
||||
p.prototype.build = function (options,callback) {
|
||||
var ele = this.element('object');
|
||||
|
||||
//TODO your code here
|
||||
|
||||
this.addlog('Built html');
|
||||
return ele;
|
||||
callback(ele);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue