我想使用以下代码播放上述预告片,但无法正常工作并引发以下错误
命令 PLAYER_INIT 完成,但出现错误或信息 PVMFFailure 02-02 13:40:33.696: ERROR/MediaPlayer(805): error (1, -1) 02-02 13:40:33.706: ERROR/MediaPlayer(805): Error ( 1,-1)
预告片链接 = http://uk.clip-1.filmtrailer.com/3230_8406_a_4.wmv?log_var=103|441100218-1|-
private final void playTrailler(String url)throws IOException, IllegalArgumentException {
MediaPlayer mp = new MediaPlayer();
Log.v(TAG, "Trailler: " + url);
mp.setDataSource(url);
mp.setOnPreparedListener(this);
mp.prepareAsync();
}
public void onPrepared(MediaPlayer mp) {
mp.start();
}