Skip to content

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 HT2-Labs/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.

2 participants