我正在使用 vitamio 库播放在线 audo 流,但这无法播放 asf 流。
mPlayer=new mPlayer(this);
try {
mPlayer.setDataSource(path);
//mPlayer.prepareAsync(); // prepare async to not block
// main
mPlayer.prepare();
mPlayer.start();
} catch (IllegalArgumentException e) {
Log.e(TAG, "mPlayer is onStartCommand error");
e.printStackTrace();
} catch (IllegalStateException e) {
Log.e(TAG, "mPlayer is onStartCommand error");
e.printStackTrace();
} catch (IOException e) {
Log.e(TAG, "mPlayer is onStartCommand error");
e.printStackTrace();
}
请帮忙!