|
@@ 6292-6301 (lines=10) @@
|
| 6289 |
|
} else { |
| 6290 |
|
return false; |
| 6291 |
|
} |
| 6292 |
|
} elseif ($format == 'ogg' || $format == 'ogx' || $format == 'ogv' || $format == 'oga') { |
| 6293 |
|
//native ogg, ogv,oga support |
| 6294 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 3) || |
| 6295 |
|
($current_browser == 'Chrome' && $current_majorver >= 3) || |
| 6296 |
|
($current_browser == 'Opera' && $current_majorver >= 9)) { |
| 6297 |
|
return true; |
| 6298 |
|
} else { |
| 6299 |
|
return false; |
| 6300 |
|
} |
| 6301 |
|
} elseif ($format == 'mpg' || $format == 'mpeg') { |
| 6302 |
|
//native mpg support |
| 6303 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5)) { |
| 6304 |
|
return true; |
|
@@ 6336-6348 (lines=13) @@
|
| 6333 |
|
} else { |
| 6334 |
|
return false; |
| 6335 |
|
} |
| 6336 |
|
} elseif ($format == 'webm') { |
| 6337 |
|
//native webm support (TODO:check IE9, Chrome9, Android) |
| 6338 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6339 |
|
($current_browser == 'Opera' && $current_majorver >= 9) || |
| 6340 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6341 |
|
($current_browser == 'Chrome' && $current_majorver >= 9) || |
| 6342 |
|
$current_browser == 'Android' |
| 6343 |
|
) { |
| 6344 |
|
return true; |
| 6345 |
|
} else { |
| 6346 |
|
return false; |
| 6347 |
|
} |
| 6348 |
|
} elseif ($format == 'wav') { |
| 6349 |
|
//native wav support (only some codecs !) |
| 6350 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6351 |
|
($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6383-6396 (lines=14) @@
|
| 6380 |
|
} else { |
| 6381 |
|
return false; |
| 6382 |
|
} |
| 6383 |
|
} elseif ($format == 'mp3') { |
| 6384 |
|
//native mp3 support (TODO:check Android, iPhone) |
| 6385 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5) || |
| 6386 |
|
($current_browser == 'Chrome' && $current_majorver >= 6) || |
| 6387 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6388 |
|
$current_browser == 'Android' || |
| 6389 |
|
$current_browser == 'iPhone' || |
| 6390 |
|
$current_browser == 'Firefox' |
| 6391 |
|
) { |
| 6392 |
|
return true; |
| 6393 |
|
} else { |
| 6394 |
|
return false; |
| 6395 |
|
} |
| 6396 |
|
} elseif ($format == "check_browser") { |
| 6397 |
|
$array_check_browser = array($current_browser, $current_majorver); |
| 6398 |
|
return $array_check_browser; |
| 6399 |
|
} else { |