Resolution
When set, any variants or video representations that match the supplied resolution will be removed from their respective playlists.
Support
Protocol
HLS | DASH |
---|---|
yes | yes |
Keys
name | key |
---|---|
r | r() |
Values
values | example |
---|---|
string | r(1920x1080) |
string | r(1920x) |
string | r(x1080) |
string | r(480-1920x1080) |
string | r(1920x720-1080) |
The number on the left
of the “x” represents the width
value and the number on the right
of the “x” represents the height
value. The number to the right or left of the “x” can be left blank to indicate that we want to match variants with only the width or height value.
Usage Example
Width and Height:
// Removes variants (or video representations) that match both 1920 width and 1080 height values
$ http http://bakery.dev.vtg.paramount.tech/r(1920x1080)/star_trek_discovery/S01/E01.m3u8
Width only:
Removing the number to the right of the “x” (height value) will indicate that we want to match all variants with just the width
value
// Removes variants (or video representations) that matches 1920 width
$ http http://bakery.dev.vtg.paramount.tech/r(1920x)/star_trek_discovery/S01/E01.mpd
Height only:
Removing the number to the left of the “x” (width value) will indicate that we want to match all variants with just the height
value
// Removes variants (or video representation) that matches 1080 height
$ http http://bakery.dev.vtg.paramount.tech/r(x1080)/star_trek_discovery/S01/E01.m3u8
Ranged Width
Placing a hyphen “-“ (see note below) between two values (480-1920x1080) will indicates a minimum and maximum range resolution Width values.
// Removes variants (or video representations) that matches 480-1920 width and 1080 height
$ http http://bakery.dev.vtg.paramount.tech/r(480-1920x1080)/star_trek_discovery/S01/E01.mpd
Ranged Height
Placing a hyphen “-“ (see note below) between two values (1920x720-1080) will indicates a minimum and maximum range resolution Height values.
// Removes variants (or video representations) that matches 1920 width and 720-1080 height
$ http http://bakery.dev.vtg.paramount.tech/r(1920x720-1080)/star_trek_discovery/S01/E01.mpd
- NOTE(1): Default minimum and maximum values are set if either side of the range is omitted.