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
Post a Comment