|
@@ 6177-6191 (lines=15) @@
|
| 6174 |
|
$result[$format] = false; |
| 6175 |
|
return false; |
| 6176 |
|
} |
| 6177 |
|
} elseif ($format == 'webm') { |
| 6178 |
|
//native webm support (TODO:check IE9, Chrome9, Android) |
| 6179 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6180 |
|
($current_browser == 'Opera' && $current_majorver >= 9) || |
| 6181 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6182 |
|
($current_browser == 'Chrome' && $current_majorver >= 9) || |
| 6183 |
|
$current_browser == 'Android' |
| 6184 |
|
) { |
| 6185 |
|
$result[$format] = true; |
| 6186 |
|
return true; |
| 6187 |
|
} else { |
| 6188 |
|
$result[$format] = false; |
| 6189 |
|
return false; |
| 6190 |
|
} |
| 6191 |
|
} elseif ($format == 'wav') { |
| 6192 |
|
//native wav support (only some codecs !) |
| 6193 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6194 |
|
($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6234-6249 (lines=16) @@
|
| 6231 |
|
$result[$format] = false; |
| 6232 |
|
return false; |
| 6233 |
|
} |
| 6234 |
|
} elseif ($format == 'mp3') { |
| 6235 |
|
//native mp3 support (TODO:check Android, iPhone) |
| 6236 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5) || |
| 6237 |
|
($current_browser == 'Chrome' && $current_majorver >= 6) || |
| 6238 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6239 |
|
$current_browser == 'Android' || |
| 6240 |
|
$current_browser == 'iPhone' || |
| 6241 |
|
$current_browser == 'Firefox' |
| 6242 |
|
) { |
| 6243 |
|
$result[$format] = true; |
| 6244 |
|
return true; |
| 6245 |
|
} else { |
| 6246 |
|
$result[$format] = false; |
| 6247 |
|
return false; |
| 6248 |
|
} |
| 6249 |
|
} elseif ($format == "check_browser") { |
| 6250 |
|
$array_check_browser = array($current_browser, $current_majorver); |
| 6251 |
|
return $array_check_browser; |
| 6252 |
|
} else { |