How to implement the Pause action for the android VideoView? -



How to implement the Pause action for the android VideoView? -

in application going play videoview.

i not using media controller variour alternative play, pause , stop.

instead of using single button utilize play , pause functionality.

i have implement below code:

case r.id.playvideobtn: if(myvideoview.isplaying()){ myvideoview.pause(); }else{ //mediacontroller ctlr=new mediacontroller(this); // ctlr.setmediaplayer(myvideoview); //myvideoview.setmediacontroller(ctlr); myvideoview.start(); } break;

now wonder how implement pause functionality same button click.

please help me it.

thanks.

from videoview.java found...

start() goes pause(), resume() goes suspend() (the latter pair causing screen blank out).

and solution @ illustration playing video

android android-layout android-ndk videoview android-video-player

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -