Video paused after back from background but video sound still available

after I go to background (open status bar,etc) and back to my app MobileRTCVideoView or MobileRTCActiveShareView pause the video screen but the video sound still available.
note: I use MobileRTC.shared().getMeetingSettings()?.enableCustomMeeting = true on this project

I already setup

on AppDelegate:

func applicationWillTerminate(_ application: UIApplication) {
    func applicationDidBecomeActive(_ application: UIApplication) {
    func applicationWillResignActive(_ application: UIApplication) {
    func applicationDidEnterBackground(_ application: UIApplication) {

on project setting:

so, what shoul I do for make the video screen resumed when app back from background? Thank you

Which iOS Meeting SDK version?

To Reproduce(If applicable)
the reproduce can be seen on video

video sample:

Hey @janTatang,

Thanks for using the dev forum!

Where in your viewcontroller lifecycle are you calling the showAttendeeVideo function?


actually I call showAttendeeVideo function on onWaitingRoomStatusChange(_: )

Hey @janTatang,

Does it effect the behavior if you call it again in viewWillAppear?


sorry sir, actualy viewWillAppear only response on View Controller before the view are visible (it’s reinit view process), so it won’t called again if I only back focus the app again from background.

So, should I re-configure the parent view again by removing MobileRTCVideoView or MobileRTCActiveShareView from the super view and add it again every time callback applicationDidBecomeActive called (applicationDidBecomeActive is called everytime application become active from background)?

Hi @janTatang,

Based on the information you’ve provided it seems that the video is only started when you join the meeting via waiting room. I would recommend using the onMeetingStateChange callback instead, as it is more comprehensive.

The above change probably won’t fix your issue though, unless you’re disconnecting/reconnecting to the meeting when you background the app. Can you try calling showAttendeeVideo in the applicationDidBecomeActive callback?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.