Skip to content

Set resolution limits for DRM streams

Stefano Gottardo edited this page Sep 23, 2024 · 1 revision

Some video service providers may have DRM video streams that require some HDCP/Security levels, common cases are VMP protection that allow only SD or Widevine L1 on android, this implies that there will be unplayable resolutions due to these restrictions and will probably result in black screen or played only for some seconds.

To prevent ISAdaptive from attempting to play these unplayable streams, you can to set the X-Limit-Video HTTP header in the HTTP license response.

To add this header in the HTTP license response, you will have to implement a proxy in your add-on to intercept the ISAdaptive HTTP license request, then your addon will make the request to get the license data and will have to edit the response on the fly to add the header (an example in page How to provide custom manifest and license).

Header

Name: X-Limit-Video

Value: The value must be prefixed with max= and followed by the result of resolution width multiplied for its height. For example to limit until to 720p: 1280x720 the result will be 921600. If the value set will be set as 0, no limit will be set.

Example

X-Limit-Video: max=921600 (stands for 1280x720 limit).

Clone this wiki locally