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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -