|
@@ 6272-6286 (lines=15) @@
|
| 6269 |
|
$result[$format] = false; |
| 6270 |
|
return false; |
| 6271 |
|
} |
| 6272 |
|
} elseif ($format == 'webm') { |
| 6273 |
|
//native webm support (TODO:check IE9, Chrome9, Android) |
| 6274 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6275 |
|
($current_browser == 'Opera' && $current_majorver >= 9) || |
| 6276 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6277 |
|
($current_browser == 'Chrome' && $current_majorver >= 9) || |
| 6278 |
|
$current_browser == 'Android' |
| 6279 |
|
) { |
| 6280 |
|
$result[$format] = true; |
| 6281 |
|
return true; |
| 6282 |
|
} else { |
| 6283 |
|
$result[$format] = false; |
| 6284 |
|
return false; |
| 6285 |
|
} |
| 6286 |
|
} elseif ($format == 'wav') { |
| 6287 |
|
//native wav support (only some codecs !) |
| 6288 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6289 |
|
($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6329-6344 (lines=16) @@
|
| 6326 |
|
$result[$format] = false; |
| 6327 |
|
return false; |
| 6328 |
|
} |
| 6329 |
|
} elseif ($format == 'mp3') { |
| 6330 |
|
//native mp3 support (TODO:check Android, iPhone) |
| 6331 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5) || |
| 6332 |
|
($current_browser == 'Chrome' && $current_majorver >= 6) || |
| 6333 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6334 |
|
$current_browser == 'Android' || |
| 6335 |
|
$current_browser == 'iPhone' || |
| 6336 |
|
$current_browser == 'Firefox' |
| 6337 |
|
) { |
| 6338 |
|
$result[$format] = true; |
| 6339 |
|
return true; |
| 6340 |
|
} else { |
| 6341 |
|
$result[$format] = false; |
| 6342 |
|
return false; |
| 6343 |
|
} |
| 6344 |
|
} elseif ($format == "check_browser") { |
| 6345 |
|
$array_check_browser = array($current_browser, $current_majorver); |
| 6346 |
|
return $array_check_browser; |
| 6347 |
|
} else { |