@@ 6377-6386 (lines=10) @@ | ||
6374 | } else { |
|
6375 | return false; |
|
6376 | } |
|
6377 | } elseif ($format == 'ogg' || $format == 'ogx' || $format == 'ogv' || $format == 'oga') { |
|
6378 | //native ogg, ogv,oga support |
|
6379 | if (($current_browser == 'Firefox' && $current_majorver >= 3) || |
|
6380 | ($current_browser == 'Chrome' && $current_majorver >= 3) || |
|
6381 | ($current_browser == 'Opera' && $current_majorver >= 9)) { |
|
6382 | return true; |
|
6383 | } else { |
|
6384 | return false; |
|
6385 | } |
|
6386 | } elseif ($format == 'mpg' || $format == 'mpeg') { |
|
6387 | //native mpg support |
|
6388 | if (($current_browser == 'Safari' && $current_majorver >= 5)) { |
|
6389 | return true; |
|
@@ 6421-6433 (lines=13) @@ | ||
6418 | } else { |
|
6419 | return false; |
|
6420 | } |
|
6421 | } elseif ($format == 'webm') { |
|
6422 | //native webm support (TODO:check IE9, Chrome9, Android) |
|
6423 | if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
|
6424 | ($current_browser == 'Opera' && $current_majorver >= 9) || |
|
6425 | ($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
|
6426 | ($current_browser == 'Chrome' && $current_majorver >= 9) || |
|
6427 | $current_browser == 'Android' |
|
6428 | ) { |
|
6429 | return true; |
|
6430 | } else { |
|
6431 | return false; |
|
6432 | } |
|
6433 | } elseif ($format == 'wav') { |
|
6434 | //native wav support (only some codecs !) |
|
6435 | if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
|
6436 | ($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6468-6481 (lines=14) @@ | ||
6465 | } else { |
|
6466 | return false; |
|
6467 | } |
|
6468 | } elseif ($format == 'mp3') { |
|
6469 | //native mp3 support (TODO:check Android, iPhone) |
|
6470 | if (($current_browser == 'Safari' && $current_majorver >= 5) || |
|
6471 | ($current_browser == 'Chrome' && $current_majorver >= 6) || |
|
6472 | ($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
|
6473 | $current_browser == 'Android' || |
|
6474 | $current_browser == 'iPhone' || |
|
6475 | $current_browser == 'Firefox' |
|
6476 | ) { |
|
6477 | return true; |
|
6478 | } else { |
|
6479 | return false; |
|
6480 | } |
|
6481 | } elseif ($format == "check_browser") { |
|
6482 | $array_check_browser = array($current_browser, $current_majorver); |
|
6483 | return $array_check_browser; |
|
6484 | } else { |