我想通过查看链接玩无线电的Shoutcast但其PLS文件格式: http://yp.shoutcast.com/sbin/tunein-station.pls?id=13361它不会在此刻发挥,
我有:
初始化:
player = new MediaPlayer();
try {
player.setDataSource("http://yp.shoutcast.com/sbin/tunein-station.pls?id=13361");
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
当按下播放按钮:
player.setOnPreparedListener(new OnPreparedListener() {
public void onPrepared(MediaPlayer mp) {
player.start();
}
});
我有与像www.example.com:8080或类似的东西口结束,这是工作相当优良另一Shoutcast的链路测试的代码,但是当链路改为PLS?ID =不读链接,因此我不能听到广播...有人请帮助我: - /