Video freezes when minimizing app, but audio still works

Description
I’ve integrated Zoom Meetings functionality into our iOS app via Zoom iOS Client SDK. When joining a meeting from inside our iOS app, I notice that minimizing our app causes the video sent from our device that appears to other people on the call to freeze, even though our audio still can be heard by others. Is this expected behavior?

Which Client iOS SDK version?
zoom-sdk-ios-5.4.54802.0124

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Integrate Zoom iOS Client SDK into your custom app
  2. Using Device A, Join a zoom meeting hosted by another person on Device B via your custom app
  3. On Device A, minimize the custom app while your video and audio are enabled and while you’re in the meeting
  4. On Device B, notice that Device A’s video has frozen in the zoom meeting, but you can still hear audio from Device A.

Smartphone (please complete the following information):

  • Device: iPhone 11
  • OS: iOS 14.4

Hey @chrisnocd,

Thanks for using the dev forum!

The video should continue even while the meeting UI is minimized. You need to enable background modes in your application to support this however. You also need to call the MobileRTC AppDelegate functions in your AppDelegate:

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        return true
    }

    func applicationWillTerminate(_ application: UIApplication) {
        MobileRTC.shared().appWillTerminate()
    }

    func applicationDidBecomeActive(_ application: UIApplication) {
        MobileRTC.shared().appDidBecomeActive()
    }

    func applicationWillResignActive(_ application: UIApplication) {
        MobileRTC.shared().appWillResignActive()
    }

    func applicationDidEnterBackground(_ application: UIApplication) {
        MobileRTC.shared().appDidEnterBackgroud()
    }
}

Thanks!
Michael

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