Skip to content

Commit

Permalink
added changeVars for jwplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed May 22, 2011
1 parent c501402 commit ca7bef2
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 52 deletions.
4 changes: 4 additions & 0 deletions packages/mm.embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@
if(!src){return;}

elem = elem || this.element;
var changeVars = this.embedOpts.jwPlayer.changeVars;
m.extendWithData(elem, obj, ['type', 'provider', 'stretching', 'bufferlength', 'streamer']);
obj.file = (elem.getAttribute('data-jwprefixsrc') || '') + obj.file;
// if we can't autodetect provider by file-extension,
Expand All @@ -1078,6 +1079,9 @@
obj.type = providerMatch[name];
}
}
if(changeVars){
changeVars(src, obj, elem, this);
}
return obj;
},
_embed: function(src, id, cfg, fn){
Expand Down
20 changes: 10 additions & 10 deletions packages/mm.embed.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/mm.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -2307,6 +2307,7 @@
if(!src){return;}

elem = elem || this.element;
var changeVars = this.embedOpts.jwPlayer.changeVars;
m.extendWithData(elem, obj, ['type', 'provider', 'stretching', 'bufferlength', 'streamer']);
obj.file = (elem.getAttribute('data-jwprefixsrc') || '') + obj.file;
// if we can't autodetect provider by file-extension,
Expand All @@ -2322,6 +2323,9 @@
obj.type = providerMatch[name];
}
}
if(changeVars){
changeVars(src, obj, elem, this);
}
return obj;
},
_embed: function(src, id, cfg, fn){
Expand Down
Loading

0 comments on commit ca7bef2

Please sign in to comment.