开发者

android media player playing trailers

开发者 https://www.devze.com 2022-12-18 14:55 出处:网络
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

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

精彩评论

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

关注公众号