Skip to main content
Skip table of contents

Resolution capping


To test this feature and view the example code, please see the Android SDK 5 Example Code Quick Start guide.

You can configure the CONNECT Player SDK to limit the maximum resolution that users will experience during playback. DASH renditions above the selected threshold will be dismissed and ignored by the player’s adaptation algorithms.

Example code

OTVVideoView has a public API that lets you configure this feature by specifying the width and height (in pixels) at which the cap will be applied. Zero values (default) for width and height will remove any resolution limit.

JAVA
public void setMaxResolution(int width, int height)

Once set, these settings apply to every stream played and persist for the lifecycle of the player. If the resolution cap is set lower than the resolution of the lowest rendition, the lowest rendition will be played.

To override resolution capping settings, see OTVVideoView resolution and bitrate overrides.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.