|
@@ 6155-6164 (lines=10) @@
|
| 6152 |
|
} else { |
| 6153 |
|
return false; |
| 6154 |
|
} |
| 6155 |
|
} elseif ($format == 'ogg' || $format == 'ogx' || $format == 'ogv' || $format == 'oga') { |
| 6156 |
|
//native ogg, ogv,oga support |
| 6157 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 3) || |
| 6158 |
|
($current_browser == 'Chrome' && $current_majorver >= 3) || |
| 6159 |
|
($current_browser == 'Opera' && $current_majorver >= 9)) { |
| 6160 |
|
return true; |
| 6161 |
|
} else { |
| 6162 |
|
return false; |
| 6163 |
|
} |
| 6164 |
|
} elseif ($format == 'mpg' || $format == 'mpeg') { |
| 6165 |
|
//native mpg support |
| 6166 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5)) { |
| 6167 |
|
return true; |
|
@@ 6199-6211 (lines=13) @@
|
| 6196 |
|
} else { |
| 6197 |
|
return false; |
| 6198 |
|
} |
| 6199 |
|
} elseif ($format == 'webm') { |
| 6200 |
|
//native webm support (TODO:check IE9, Chrome9, Android) |
| 6201 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6202 |
|
($current_browser == 'Opera' && $current_majorver >= 9) || |
| 6203 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6204 |
|
($current_browser == 'Chrome' && $current_majorver >= 9) || |
| 6205 |
|
$current_browser == 'Android' |
| 6206 |
|
) { |
| 6207 |
|
return true; |
| 6208 |
|
} else { |
| 6209 |
|
return false; |
| 6210 |
|
} |
| 6211 |
|
} elseif ($format == 'wav') { |
| 6212 |
|
//native wav support (only some codecs !) |
| 6213 |
|
if (($current_browser == 'Firefox' && $current_majorver >= 4) || |
| 6214 |
|
($current_browser == 'Safari' && $current_majorver >= 5) || |
|
@@ 6246-6259 (lines=14) @@
|
| 6243 |
|
} else { |
| 6244 |
|
return false; |
| 6245 |
|
} |
| 6246 |
|
} elseif ($format == 'mp3') { |
| 6247 |
|
//native mp3 support (TODO:check Android, iPhone) |
| 6248 |
|
if (($current_browser == 'Safari' && $current_majorver >= 5) || |
| 6249 |
|
($current_browser == 'Chrome' && $current_majorver >= 6) || |
| 6250 |
|
($current_browser == 'Internet Explorer' && $current_majorver >= 9) || |
| 6251 |
|
$current_browser == 'Android' || |
| 6252 |
|
$current_browser == 'iPhone' || |
| 6253 |
|
$current_browser == 'Firefox' |
| 6254 |
|
) { |
| 6255 |
|
return true; |
| 6256 |
|
} else { |
| 6257 |
|
return false; |
| 6258 |
|
} |
| 6259 |
|
} elseif ($format == "check_browser") { |
| 6260 |
|
$array_check_browser = array($current_browser, $current_majorver); |
| 6261 |
|
return $array_check_browser; |
| 6262 |
|
} else { |