# MobileRTCVideoView Video Pause and Resume

**URL:** <https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705>\
**Category:** Android\
**Created:** [March 16, 2020, 9:48am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705 "2020-03-16T09:48:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveenkumar.elayappa](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@naveenkumar.elayappa](https://devforum.zoom.us/u/naveenkumar.elayappa)\
**Post date:** [March 16, 2020, 9:48am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/1 "2020-03-16T09:48:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 18, 2020, 12:30am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/2 "2020-03-18T00:30:00Z")

</div>

Hi [naveenkumar.elayappa](https://devforum.zoom.us/u/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!

---

<div class="post-metadata">

**Author:** ![naveenkumar.elayappa](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@naveenkumar.elayappa](https://devforum.zoom.us/u/naveenkumar.elayappa)\
**Post date:** [March 18, 2020, 4:54am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/3 "2020-03-18T04:54:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 19, 2020, 4:11am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/4 "2020-03-19T04:11:21Z")

</div>

Hi [naveenkumar.elayappa](https://devforum.zoom.us/u/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--](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:

```auto
@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!

---

<div class="post-metadata">

**Author:** ![naveenkumar.elayappa](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@naveenkumar.elayappa](https://devforum.zoom.us/u/naveenkumar.elayappa)\
**Post date:** [March 19, 2020, 4:46am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/5 "2020-03-19T04:46:07Z")

</div>

Thank you for response.It is working fine.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 19, 2020, 5:17am UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/6 "2020-03-19T05:17:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:31pm UTC](https://devforum.zoom.us/t/mobilertcvideoview-video-pause-and-resume/8705/7 "2020-08-21T19:31:58Z")

</div>

Closed on August 21, 2020, 7:31pm UTC


