VideoView onResume loses buffered portion of the video

后端 未结 10 548
北恋
北恋 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:47

    In onPause() function, instead of

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

    try

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

提交回复
热议问题