android - Videoview Pausing and resuming -


I am new to Android development and I am programming the game. There are cuts in my game before each level starts, the cuts made through videos are my problem, that, at the start of an application break, the deduction starts from the beginning.

  @override pause at public zero {super.onPause (); Video.pause (); } @ Override Public Records on Resum () {Super. Rebirth (); Video.resume (); }   

Our issue is that the video has not actually started again, where we stopped it, but from the beginning itself.

You can use this

  @Override public At zero () {log d. (Tag, "called on"); Super.onPause (); StopPosition = videoView.getCurrentPosition (); // stopposition is a full video video. Pause (); } @ Override Public Records on Resum () {Super. Rebirth (); Log D. (The tag is called "honor"); VideoView.seekTo (stopPosition); VideoView.start (); // I use again () I'm not sure if this does not work}   



Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -