@@ 6363-6372 (lines=10) @@ | ||
6360 | } else { |
|
6361 | return false; |
|
6362 | } |
|
6363 | } elseif ($format == 'ogg' || $format == 'ogx' || $format == 'ogv' || $format == 'oga') { |
|
6364 | //native ogg, ogv,oga support |
|
6365 | if (($current_browser == 'Firefox' && $current_majorver >= 3) || |
|
6366 | ($current_browser == 'Chrome' && $current_majorver >= 3) || |
|
6367 | ($current_browser == 'Opera' && $current_majorver >= 9)) { |
|
6368 | return true; |
|
6369 | } else { |
|
6370 | return false; |
|
6371 | } |
|
6372 | } elseif ($format == 'mpg' || $format == 'mpeg') { |
|
6373 | //native mpg support |
|
6374 | if (($current_browser == 'Safari' && $current_majorver >= 5)) { |
|
6375 | return true; |
|
@@ 6407-6419 (lines=13) @@ | ||
6404 | } else { |
|
6405 | return false; |
|
6406 | } |
|
6407 | } elseif ($format == 'webm') { |
|
6408 | //native webm support (TODO:check IE9, Chrome9, Android) |
|
6409 | if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
|
6410 | ($current_browser == 'Opera' && $current_majorver >= 9) || |
|
6411 | ($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
|
6412 | ($current_browser == 'Chrome' && $current_majorver >= 9) || |
|
6413 | $current_browser == 'Android' |
|
6414 | ) { |
|
6415 | return true; |
|
6416 | } else { |
|
6417 | return false; |
|
6418 | } |
|
6419 | } elseif ($format == 'wav') { |
|
6420 | //native wav support (only some codecs !) |
|
6421 | if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
|
6422 | ($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6454-6467 (lines=14) @@ | ||
6451 | } else { |
|
6452 | return false; |
|
6453 | } |
|
6454 | } elseif ($format == 'mp3') { |
|
6455 | //native mp3 support (TODO:check Android, iPhone) |
|
6456 | if (($current_browser == 'Safari' && $current_majorver >= 5) || |
|
6457 | ($current_browser == 'Chrome' && $current_majorver >= 6) || |
|
6458 | ($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
|
6459 | $current_browser == 'Android' || |
|
6460 | $current_browser == 'iPhone' || |
|
6461 | $current_browser == 'Firefox' |
|
6462 | ) { |
|
6463 | return true; |
|
6464 | } else { |
|
6465 | return false; |
|
6466 | } |
|
6467 | } elseif ($format == "check_browser") { |
|
6468 | $array_check_browser = array($current_browser, $current_majorver); |
|
6469 | return $array_check_browser; |
|
6470 | } else { |