Permalink
Browse files

added changeVars for jwplayer

  • Loading branch information...
1 parent c501402 commit ca7bef2972a39230367acf0f1eb990bac673e346 @aFarkas aFarkas committed May 22, 2011
Showing with 64 additions and 52 deletions.
  1. +4 −0 packages/mm.embed.js
  2. +10 −10 packages/mm.embed.min.js
  3. +4 −0 packages/mm.full.js
  4. +42 −42 packages/mm.full.min.js
  5. +4 −0 src/mm.jwplayer-embed.js
View
@@ -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,
@@ -1078,6 +1079,9 @@
obj.type = providerMatch[name];
}
}
+ if(changeVars){
+ changeVars(src, obj, elem, this);
+ }
return obj;
},
_embed: function(src, id, cfg, fn){
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -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,
@@ -2322,6 +2323,9 @@
obj.type = providerMatch[name];
}
}
+ if(changeVars){
+ changeVars(src, obj, elem, this);
+ }
return obj;
},
_embed: function(src, id, cfg, fn){
Oops, something went wrong.

0 comments on commit ca7bef2

Please sign in to comment.