Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

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 7c27025 + 35e1ce7 commit 04eb274
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 04eb274

Please sign in to comment.