MobileRTCVideoView Video Pause and Resume

We are using Zoom Custom UI.When we minimize the application in android, MobileRTCVideoView onPause is called and It pause the video of attender ,But Attender video is visible to Host.

Hi naveenkumar.elayappa,

Thanks for the post. When you are mentioning “minimize the application”, do you mean that you are making the video view smaller and make it float on the app, or something like pressing the home button and put the app into the background?

Do you mean that the video is still working when the app is going into the background?

If you would like to pause the video when minimizing the application, you may need to call InMeetingVideoController.muteMyVideo to mute the video.

Thanks!

Thank you for the response. The video is still working and visible to the host after pressing home button and put the app into the background.In the MyMeetingActivity MobileRTCVideoView onPause method is called.I want to know why it is not pausing as expected and how to resolve the issue.

Hi naveenkumar.elayappa,

Thanks for the reply. As the description of the onPause method(https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MobileRTCVideoView.html#onPause--) says “Pause videoview rendering”, so it just stops the rendering, but not stop using the camera.

In Zoom default UI, this has been taken care of. But in Custom UI, the stop video action needs to be handled by the developer.

If you would like to stop the video after the app goes to the background, you may:

@Override
    protected void onPause() {
        super.onPause();
        mDefaultVideoView.onPause();
        ZoomSDK.getInstance().getInMeetingService().getInMeetingVideoController().muteMyVideo(true);
    }

And when the app comes to the foreground, you may call the muteMyVideo again in the onResume to start the video.

Hope this helps. Thanks!

Thank you for response.It is working fine.

Glad to hear that it is working. Let me know if any other questions. Happy Zooming! :slight_smile: