我正在使用vitamio库来播放在线音频流,但这不能播放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();
}
Plz帮忙!
答案 0 :(得分:1)
Vitamio支持asf流。你这人怎么回事?错误日志?