Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select first source that is supported by the browser #679

Merged
merged 1 commit into from
Dec 20, 2012

Conversation

s2b
Copy link

@s2b s2b commented Dec 6, 2012

From my point of view it makes sense to use the first compatible media file instead of the last one if provided via setSrc().

Example:
element.setSrc([
{type: 'video/mp4', src: 'video.mp4'},
{type: 'video/webm', src: 'video.webm'}])
]);

In this case Google Chrome would select the webm file although it supports mp4 files as well. This is inconsistent with the HTML5 syntax where the first supported source will be used.

johndyer added a commit that referenced this pull request Dec 20, 2012
Select first source that is supported by the browser
@johndyer johndyer merged commit e8589e0 into mediaelement:master Dec 20, 2012
phuongdh pushed a commit to avalonmediasystem/mediaelement that referenced this pull request Oct 18, 2013
Select first source that is supported by the browser
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
Select first source that is supported by the browser
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
Select first source that is supported by the browser
marmite22 pushed a commit to elucidat/mediaelement that referenced this pull request Dec 16, 2016
Select first source that is supported by the browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants