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.

public void setMaxResolution(int width, int height)
JAVA

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.