|
@@ 6231-6245 (lines=15) @@
|
| 6228 |
|
$result[$format] = false; |
| 6229 |
|
return false; |
| 6230 |
|
} |
| 6231 |
|
} elseif ($format == 'webm') { |
| 6232 |
|
//native webm support (TODO:check IE9, Chrome9, Android) |
| 6233 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6234 |
|
($current_browser == 'Opera' && $current_majorver >= 9) || |
| 6235 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6236 |
|
($current_browser == 'Chrome' && $current_majorver >= 9) || |
| 6237 |
|
$current_browser == 'Android' |
| 6238 |
|
) { |
| 6239 |
|
$result[$format] = true; |
| 6240 |
|
return true; |
| 6241 |
|
} else { |
| 6242 |
|
$result[$format] = false; |
| 6243 |
|
return false; |
| 6244 |
|
} |
| 6245 |
|
} elseif ($format == 'wav') { |
| 6246 |
|
//native wav support (only some codecs !) |
| 6247 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6248 |
|
($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6288-6303 (lines=16) @@
|
| 6285 |
|
$result[$format] = false; |
| 6286 |
|
return false; |
| 6287 |
|
} |
| 6288 |
|
} elseif ($format == 'mp3') { |
| 6289 |
|
//native mp3 support (TODO:check Android, iPhone) |
| 6290 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5) || |
| 6291 |
|
($current_browser == 'Chrome' && $current_majorver >= 6) || |
| 6292 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6293 |
|
$current_browser == 'Android' || |
| 6294 |
|
$current_browser == 'iPhone' || |
| 6295 |
|
$current_browser == 'Firefox' |
| 6296 |
|
) { |
| 6297 |
|
$result[$format] = true; |
| 6298 |
|
return true; |
| 6299 |
|
} else { |
| 6300 |
|
$result[$format] = false; |
| 6301 |
|
return false; |
| 6302 |
|
} |
| 6303 |
|
} elseif ($format == "check_browser") { |
| 6304 |
|
$array_check_browser = array($current_browser, $current_majorver); |
| 6305 |
|
return $array_check_browser; |
| 6306 |
|
} else { |