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();
}
精彩评论