|
@@ 6300-6309 (lines=10) @@
|
| 6297 |
|
} else { |
| 6298 |
|
return false; |
| 6299 |
|
} |
| 6300 |
|
} elseif ($format == 'ogg' || $format == 'ogx' || $format == 'ogv' || $format == 'oga') { |
| 6301 |
|
//native ogg, ogv,oga support |
| 6302 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 3) || |
| 6303 |
|
($current_browser == 'Chrome' && $current_majorver >= 3) || |
| 6304 |
|
($current_browser == 'Opera' && $current_majorver >= 9)) { |
| 6305 |
|
return true; |
| 6306 |
|
} else { |
| 6307 |
|
return false; |
| 6308 |
|
} |
| 6309 |
|
} elseif ($format == 'mpg' || $format == 'mpeg') { |
| 6310 |
|
//native mpg support |
| 6311 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5)) { |
| 6312 |
|
return true; |
|
@@ 6344-6356 (lines=13) @@
|
| 6341 |
|
} else { |
| 6342 |
|
return false; |
| 6343 |
|
} |
| 6344 |
|
} elseif ($format == 'webm') { |
| 6345 |
|
//native webm support (TODO:check IE9, Chrome9, Android) |
| 6346 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6347 |
|
($current_browser == 'Opera' && $current_majorver >= 9) || |
| 6348 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6349 |
|
($current_browser == 'Chrome' && $current_majorver >= 9) || |
| 6350 |
|
$current_browser == 'Android' |
| 6351 |
|
) { |
| 6352 |
|
return true; |
| 6353 |
|
} else { |
| 6354 |
|
return false; |
| 6355 |
|
} |
| 6356 |
|
} elseif ($format == 'wav') { |
| 6357 |
|
//native wav support (only some codecs !) |
| 6358 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6359 |
|
($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6391-6404 (lines=14) @@
|
| 6388 |
|
} else { |
| 6389 |
|
return false; |
| 6390 |
|
} |
| 6391 |
|
} elseif ($format == 'mp3') { |
| 6392 |
|
//native mp3 support (TODO:check Android, iPhone) |
| 6393 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5) || |
| 6394 |
|
($current_browser == 'Chrome' && $current_majorver >= 6) || |
| 6395 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6396 |
|
$current_browser == 'Android' || |
| 6397 |
|
$current_browser == 'iPhone' || |
| 6398 |
|
$current_browser == 'Firefox' |
| 6399 |
|
) { |
| 6400 |
|
return true; |
| 6401 |
|
} else { |
| 6402 |
|
return false; |
| 6403 |
|
} |
| 6404 |
|
} elseif ($format == "check_browser") { |
| 6405 |
|
$array_check_browser = array($current_browser, $current_majorver); |
| 6406 |
|
return $array_check_browser; |
| 6407 |
|
} else { |