FilterTrackSelection – Media API – MediaKind

FilterTrackSelection

object

trackSelections

list of objects FilterTrackPropertyCondition Required

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"}
]

operation

enumRequired

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: Equal, NotEqual

property

enumRequired

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

Allowed values: Unknown, Type, Name, Language, FourCC, Bitrate

value

string Required

The value to match against. Values are not case-sensitive.