Skip to content

Resolution limits for playable streams

Stefano Gottardo edited this page Apr 29, 2022 · 2 revisions

Some services may provide video streams with unplayable resolutions due to some restrictions (will probably result in black screen or played only for some seconds).

To prevent ISAdaptive from attempting to play these unplayable streams, you will have 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).