【发布时间】:2014-07-28 21:26:47
【问题描述】:
<?php
if( strstr($_SERVER['HTTP_USER_AGENT'],'Android') ||
strstr($_SERVER['HTTP_USER_AGENT'],'webOS') ||
strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||
strstr($_SERVER['HTTP_USER_AGENT'],'iPod') ){
echo "<audio controls autoplay><source src=\"http://live.piratefm.ro:12000/\" type=\"audio/mp3\">Your browser does not support the audio element.</audio>";
}
else{
echo "<embed width=\"90%\" height=\"35\" src=\"http://player.wavestreamer.com/cgi-bin/player2.swf\" flashvars=\"skin=http://player.wavestreamer.com/cgi-bin/bluemetal/bluemetal.swf&title=Live Stream&type=sound&file=http://89.33.242.101:12000/;s.mp3&13142580629&duration=99999&id=scplayer&=true&volume=100&autostart=true&\"></embed>";
}
?>
简单的东西,我有一个广播网站,我想以不同的方式处理播放器,因为现在所有的手机,正如他们所说的,都支持 html5,为什么不使用它呢?我想在台式机上使用 Flash,因为旧版浏览器无法使用 html。
流不会在 android 4.2.2 上播放,无论是在 chrome 还是它的本机浏览器中。流在 iphone 上的 chrome 和本机浏览器上播放良好。
这到底是怎么回事?我有什么替代方案?
edit::: 播放器出现,但它不会让播放按钮被按下。有点像它总是在缓冲。连接稳定3g,可以轻松处理数据。 ram 也是免费的。
edit2::: 现在 chrome 正在工作。原生安卓浏览器还是不行。
【问题讨论】: