CONNECT Player SDK 5 for Browsers and Connected TV
5.28.x 5.27.x 5.26.x 5.25.x 5.24.x 5.23.x 5.22.x 5.21.x 5.20.x 5.19.x 5.18.x 5.17.x 5.16.x 5.15.x 5.14.x 5.13.x 5.12.x 5.11.x 5.10.x 5.9.x 5.7.x 5.6.x 5.5.x 5.4.x 5.3.x 5.2.x
5.28.x 5.27.x 5.26.x 5.25.x 5.24.x 5.23.x 5.22.x 5.21.x 5.20.x 5.19.x 5.18.x 5.17.x 5.16.x 5.15.x 5.14.x 5.13.x 5.12.x 5.11.x 5.10.x 5.9.x 5.7.x 5.6.x 5.5.x 5.4.x 5.3.x 5.2.x

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:

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

To remove caps pass Infinity as arguments to the functions:

JavaScript
playerInstance.otvtoolkit().setMaxResolution(Infinity, Infinity);
JavaScript
playerInstance.otvtoolkit().setMaxBandwidth(Infinity);