Bug 1067697 - Account for fmp4 now potentially working on MacOS X 10.6. r=cpearce

This commit is contained in:
Jean-Yves Avenard 2014-09-16 17:22:40 +10:00
parent 728c9da2c9
commit 7634640edd

View File

@ -99,7 +99,7 @@ function IsWindowsVistaOrLater() {
return winver && winver.length == 2 && parseFloat(winver[1]) >= 6.0;
}
function IsMacOSLionOrLater() {
function IsMacOSSnowLeopardOrLater() {
var re = /Mac OS X (\d+)\.(\d+)/;
var ver = navigator.userAgent.match(re);
if (!ver || ver.length != 3) {
@ -107,7 +107,7 @@ function IsMacOSLionOrLater() {
}
var major = ver[1] | 0;
var minor = ver[2] | 0;
return major == 10 && minor >= 7;
return major == 10 && minor >= 6;
}
function getPref(name) {
@ -127,7 +127,7 @@ function IsLinuxGStreamer() {
function IsMP4ReaderAvailable() {
var prefs = getPref("media.fragmented-mp4.enabled") &&
getPref("media.fragmented-mp4.exposed");
return prefs && (IsWindowsVistaOrLater() || IsMacOSLionOrLater());
return prefs && (IsWindowsVistaOrLater() || IsMacOSSnowLeopardOrLater());
}
var haveMp4 = (getPref("media.windows-media-foundation.enabled") && IsWindowsVistaOrLater()) ||