Function
prefer
ts
prefer(
value: boolean,
): number;Helper function for use in InputTrackQuery.sortBy, used to sort tracks by boolean properties. true is sorted to the start, false to the end. Useful for expressing soft preferences (e.g., "I'd prefer 1080p, but other resolutions are fine too") as opposed to InputTrackQuery.filter which expresses hard requirements for tracks.