Page MenuHomePhabricator

TimedMediaHandler <source> elements missing "type" parameter
Closed, ResolvedPublic

Description

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
  1. 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.


Version: master
Severity: normal
URL: http://en.m.wikipedia.org/wiki/Red_Panda#section_5

Details

Reference
bz43101

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:45 AM
bzimport set Reference to bz43101.
Gilles triaged this task as Unbreak Now! priority.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Needs Triage.Dec 4 2014, 11:23 AM