# Manage video quality When network bandwidth is limited, you can adjust video quality preferences between resolution and frame rate. For example, you can choose to preserve the video sharpness or smoothness. If bandwidth is not a concern, you can receive the best quality video using a high video resolution and maximum frame rate. Set your video quality preferences with the `ZoomVideoSDKVideoPreferenceSetting`. ## Video preference modes Choose from the following modes, depending on what you'd like to prioritize. - **Balance mode.** Zoom will do what is best under the current bandwidth situation and make adjustments as needed. You don't need to set any additional parameters for this mode. This mode is suitable for video conference usage. This is the default preference. - **Smoothness mode.** Preserves the frame rate as much as possible. If network bandwidth degrades, Zoom will sacrifice video resolution to preserve the frame rate. This prioritizes a smooth video frame transition. - **Sharpness mode.** Preserves the resolution as much as possible. If network bandwidth degrades, Zoom will sacrifice the frame rate to preserve video resolution. This prioritizes a sharp video image. - **Custom mode.** Allows you to provide the minimum and maximum frame rate. Use this mode if you have an understanding of your network behavior and a clear idea of how to adjust the frame rate to achieve the desired video quality. You can also use this mode to influence bandwidth usage by increasing or decreasing the maximum frame rate setting. Given a resolution, a lower maximum frame rate results in less bandwidth usage. If the bandwidth cannot be sustained by following the minimum and maximum frame rates, the system will drop down to the next lower resolution. ## Set a preference Pass a `ZoomVideoSDKVideoPreferenceSetting` to `setVideoQualityPreference` on the `ZoomVideoSDKVideoHelper`. The setting object carries the preferred mode and, for `Custom` mode, the minimum and maximum frame rate. ```swift let preference = ZoomVideoSDKVideoPreferenceSetting() preference.mode = ZoomVideoSDKVideoPreferenceMode_Smoothness ZoomVideoSDK.shareInstance()?.getVideoHelper()?.setVideoQualityPreference(preference) ``` ```objectivec ZoomVideoSDKVideoPreferenceSetting *preference = [[ZoomVideoSDKVideoPreferenceSetting alloc] init]; preference.mode = ZoomVideoSDKVideoPreferenceMode_Smoothness; [[[ZoomVideoSDK shareInstance] getVideoHelper] setVideoQualityPreference:preference]; ``` See the reference documentation for the full `ZoomVideoSDKVideoPreferenceSetting` shape and the `Custom`-mode parameters. ## Use cases Video quality preferences are useful when the primary focus is not the image of a person attending the session, but on other video images where smoothness or sharpness is preferred. Aside from video conferencing, you may want to set video quality preferences for: - Transmission of medical X-ray images. - Transmission of video captured by endoscopic cameras during a medical operation. - Live sporting event broadcasts, such as co-watching or broadcasting a football game.