Videoview Pausing and resuming

后端 未结 7 639
青春惊慌失措
青春惊慌失措 2020-12-08 06:19

I am new to android development and I am programming a game. My game has cutsceens that play before each level starts, cutsceens which are done through videoview. My problem

7条回答
  •  Happy的楠姐
    2020-12-08 06:59

    In OnPause you can get the current position .

    length=mVideoView.getCurrentPosition();
    

    and length value use in OnResume ().

    mVideoView.seekTo(length);
    mVideoView.start()
    

    working fine .

提交回复
热议问题