Skip to content

Commit

Permalink
Merge pull request mediaelement#679 from s2b/master
Browse files Browse the repository at this point in the history
Select first source that is supported by the browser
  • Loading branch information
johndyer committed Dec 20, 2012
2 parents ad5828c + 4fd8193 commit 3c6e692
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/me-mediaelements.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ mejs.HtmlMediaElement = {
media = url[i];
if (this.canPlayType(media.type)) {
this.src = media.src;
break;
}
}
}
Expand Down Expand Up @@ -190,6 +191,7 @@ mejs.PluginMediaElement.prototype = {
if (this.canPlayType(media.type)) {
this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(media.src));
this.src = mejs.Utility.absolutizeUrl(url);
break;
}
}
}
Expand Down

0 comments on commit 3c6e692

Please sign in to comment.