Last modified: 2012-12-31 10:26:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45101, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43101 - TimedMediaHandler <source> elements missing "type" parameter
TimedMediaHandler <source> elements missing "type" parameter
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Michael Dale
http://en.m.wikipedia.org/wiki/Red_Pa...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-13 23:54 UTC by Brion Vibber
Modified: 2012-12-31 10:26 UTC (History)
2 users (show)

See Also:
Web browser: Google Chrome
Mobile Platform: Android 4.0.x
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2012-12-13 23:54:30 UTC
TimedMediaHandler outputs <video> elements with multiple <source> subelements directly into HTML, which allows browsers without JavaScript -- or any browser on the mobile interface where we have less JavaScript -- to play the videos directly.

However, the <source> elements are not labeled with "type" attributes, so the browser can't tell which source it should go for.

Instead it seems to default to the first source, which appears to be the original file.

This seems to have two major problems:

1) original source may be HD and waste resources on a small-screen or low-bandwidth device

2) platforms such as Android 4.x support WebM but not Ogg Theora; by defaulting to the Ogg version the video doesn't play.

In theory, having "type" attributes ought to allow Chrome to select one of the WebM versions instead; this'll probably also be needed if/when we do H.264 transcodes for browsers that don't support Ogg or WebM.
Comment 1 Michael Dale 2012-12-14 00:35:52 UTC
added here: 
https://gerrit.wikimedia.org/r/#/c/38665/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links