VideoView onResume loses buffered portion of the video

后端 未结 10 539
北恋
北恋 2020-12-01 02:56

I am having an Activity in which there is

  1. VideoView -- Streams a video from a webserver.

  2. Button -- Takes the user to the next activit

10条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 03:46

    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        videoView.pause();
        super.onPause();
    }
    
    @Override
    protected void onRestart() {
        // TODO Auto-generated method stub
        videoView.resume();
        super.onPause();
    }
    

    try by adding above twomethods in your activity.

提交回复
热议问题