Skip to main content
Skip table of contents

Resolution and bitrate capping

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

The CONNECT Player SDK can apply resolution and bandwidth caps to DASH streams.

Alternative APIs

A cap on the resolution can be set by an explicit cap of x and y pixels, this can also be done for bandwidth capping with a cap of z bits per second (bps).

Procedure for capping programmatically

Simply call the setMaxResolution() and setMaxBandwidth() functions, for example:

JS
playerInstance.otvtoolkit().setMaxResolution(640, 480);
JS
playerInstance.otvtoolkit().setMaxBandwidth(2500000));

To remove caps pass Infinity as arguments to the functions:

JS
playerInstance.otvtoolkit().setMaxResolution(Infinity, Infinity);
JS
playerInstance.otvtoolkit().setMaxBandwidth(Infinity);
JavaScript errors detected

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

If this problem persists, please contact our support.