FilterTrackSelection

object
trackSelectionslist of objectsFilterTrackPropertyConditionRequired

Defines the tracks to include in the output. Multiple entries here will be AND'd together.

Typically, you will want to select a matching Type, such as video, and then select additional filters. For instance, to include all audio tracks that are not English, and all video tracks that are between 3 and 5 Mbps, you would provide three FilterTrackSelection objects:

[
    {"property": "Type", "operation": "Equal", "value": "Audio"},
    {"property": "Bitrate", "operation": "Equal", "value": "3000000-5000000"},
    {"property": "Language", "operation": "NotEqual", "value": "en"},
]
Show 3 propertiesHide 3 properties
operationenumRequired

Set to either 'Equal' or 'NotEqual'. Tracks matching this predicate will be included.

Examples: To include all audio tracks, set operation to 'Equal', property to 'Type', and value to 'Audio'.

Allowed values:EqualNotEqual
propertyenumRequired

The property to match against. Supported properties include: Bitrate, FourCC, Language, Name, Type, and Unknown.

  • Bitrate may be provided as a single numeric value '100000' or as a range '500000-1000000'.
  • FourCC is the codec, and may be one of 'avc1', 'hev1', and 'hvc1' for video, or one of 'mp4a' and 'ec-3' for audio.
  • Language is the value of a language tag to include, as specified in RFC 5646.
  • Name is the name of the track as specified in the manifest.
  • Type is one of either 'video', 'audio', or 'text'.
Allowed values:UnknownTypeNameLanguageFourCCBitrate
valuestringRequired
The value to match against. Values are not case-sensitive.