Expand description
Algorithms as defined in the “Media Capture and Streams” spec.
Structs§
- Closest
ToIdeal Policy - A tie-breaking policy that picks the settings item that’s closest to the specified ideal settings.
- First
Policy - A naïve tie-breaking policy that just picks the first settings item it encounters.
- Setting
Fitness Distance Error - An error indicating a rejected fitness distance computation, likely caused by a mismatched yet required constraint.
- Settings
Fitness Distance Error - A list of media track properties and their corresponding fitness distance errors.
Enums§
- Device
Information Exposure Mode - A mode indicating whether device information may be exposed.
- Select
Settings Error - An error type indicating a failure of the
SelectSettings
algorithm. - Setting
Fitness Distance Error Kind - The kind of the error (e.g. missing value, mismatching value, …).
Traits§
- Fitness
Distance - The function used to compute the “fitness distance” of a setting value of a
MediaStreamTrack
object. - TieBreaking
Policy - A tie-breaking policy used for selecting a single preferred candidate from a set list of equally optimal setting candidates.
Functions§
- select_
settings_ candidates - 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