开发者

android media player playing trailers

I want to play the above trailer using following code but it is not working throwing following error

Command PLAYER_INIT completed with an error or info 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)

Trailler link = 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.s开发者_如何学Pythontart();

    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜