set Enable Activity Lifecycle
Enables or disables automatic webcam management based on activity lifecycle.
When enabled (default), the SDK automatically disables the webcam when the activity is stopped (e.g., app goes to background) and re-enables it when the activity is resumed.
Code Example:
VideoSDK.setEnableActivityLifecycle(false) // Disable auto webcam management
Content copied to clipboard
Parameters
enable Activity Lifecycle
true to enable automatic webcam management, false to disable it.