On Thu, Dec 13, 2012 at 2:56 PM, Brion Vibber bvibber@wikimedia.org wrote:
I can play the current media on the front page of Commons in Chrome on my Nexus 7, but it won't play in position on either desktop < http://en.wikipedia.org/wiki/Serge_Haroche%3E or mobile < http://en.m.wikipedia.org/wiki/Serge_Haroche%3E ...
On more careful testing, the *desktop* web site shows the video on the Nexus 7 (and 10) while the *mobile* site shows only a black rectangle when trying to play.
I also notice that the <source> elements in the <video> seem to start with
the original, and aren't labeled with types or codecs. This means that without the extra Kaltura player JS -- for instance as we see it on the mobile site right now -- the browser may not be able to determine which file is playable or best-playable.
It looks like Chrome on Android 4+ (and MAYBE 2.3 but I can't verify it yet) plays WebM but not Ogg Theora. So on the desktop site, the JS finds the WebM sources and they play. On the mobile site (with no video JS available) the first source which is the Ogg Theora original gets selected by default and doesn't play.
Adding 'type' attributes listing the file type and codecs used should allow Chrome to see the WebM versions and play them by itself, and get us working on newer Android devices in Chrome/Browser as well as Firefox...
Filed as: https://bugzilla.wikimedia.org/show_bug.cgi?id=43101
Alternately or in addition, we could pull in some of the JS for the mobile site too, but we'll have to evaluate stuff.
Whee!
-- brion