pub fn select_settings_candidates<'a, I>(
possible_settings: I,
constraints: &SanitizedMediaTrackConstraints,
exposure_mode: DeviceInformationExposureMode,
) -> Result<Vec<&'a MediaTrackSettings>, SelectSettingsError>where
I: IntoIterator<Item = &'a MediaTrackSettings>,
Expand description
This function implements steps 1-5 of the SelectSettings
algorithm
as defined by the W3C spec:
https://www.w3.org/TR/mediacapture-streams/#dfn-selectsettings
Step 6 (tie-breaking) is omitted by this implementation and expected to be performed
manually on the returned candidates.
For this several implementation of TieBreakingPolicy
are provided by this crate.