android - Getting the blank screen for 2 or 3 seconds while displaying video after image -


i developing 1 android application in able play videos , images in sd card.but getting blank screen 2 or 3 seconds while displaying video after image. don't want blank screen, need show video after image. can tell how that?

try playing video inside onprepared(), first of initialize videoview path or uri of video , play it,

    mvideoview.setvideouri(uri.parse(path));     mvideoview.setonpreparedlistener(new onpreparedlistener() {          @override         public void onprepared(mediaplayer mp) {             mvideoview.start();         }     }); 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -