Bug 1084441 - Test for ability to play MP4 on Android Jelly Bean and higher r=cpearce

This commit is contained in:
James Willcox 2015-03-02 16:28:52 -06:00
parent dbb84a747f
commit e7244fa944

View File

@ -123,11 +123,15 @@ function IsLinuxGStreamer() {
getPref("media.gstreamer.enabled");
}
function IsJellyBeanOrLater() {
return androidVersion >= 16;
}
// Check whether we should expect the new MP4Reader-based support to work.
function IsMP4ReaderAvailable() {
var prefs = getPref("media.fragmented-mp4.enabled") &&
getPref("media.fragmented-mp4.exposed");
return prefs && (IsWindowsVistaOrLater() || IsMacOSSnowLeopardOrLater());
return prefs && (IsWindowsVistaOrLater() || IsMacOSSnowLeopardOrLater() || IsJellyBeanOrLater());
}
var haveMp4 = (getPref("media.windows-media-foundation.enabled") && IsWindowsVistaOrLater()) ||