开发者

android mediaplayer bacgroung loading

how can i load a f开发者_如何转开发ile into mediaplayer while showing a splash screen in the foregroung ,i mean after splash sceen i want to display video on the screen directly without wait


If you're using VideoView, follow these steps:
1) show your splash screen
2)

videoView.setMediaController(new MediaController(this));
videoView.setOnPreparedListener(this); 

3) turn off splash screen and play video -

public void onPrepared(MediaPlayer mp) {
// splash dismiss here
videoView.start();
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜