Expand description
Pure Rust implementation of the constraint logic defined in the “Media Capture and Streams” spec.
Re-exports§
pub use self::property::MediaTrackProperty;
Modules§
- algorithms
- Algorithms as defined in the “Media Capture and Streams” spec.
- errors
- Errors, as defined in the “Media Capture and Streams” spec.
- macros
- Convenience macros.
- property
- Constants identifying the properties of a
MediaStreamTrack
object, as defined in the “Media Capture and Streams” spec.
Macros§
- advanced_
constraints - A convenience macro for defining “advanced” constraints.
- constraint_
set - A convenience macro for defining constraint sets.
- constraints
- A convenience macro for defining constraints.
- mandatory_
constraints - A convenience macro for defining “mandatory” constraints.
- settings
- A convenience macro for defining settings.
- value_
constraint - A convenience macro for defining individual “value” constraints.
- value_
range_ constraint - A convenience macro for defining individual “value range” constraints.
- value_
sequence_ constraint - A convenience macro for defining individual “value sequence” constraints.
Structs§
- Media
Track Capabilities - The capabilities of a
MediaStreamTrack
object. - Media
Track Settings - The settings of a
MediaStreamTrack
object. - Media
Track Supported Constraints - The list of constraints recognized by a User Agent for controlling the
capabilities of a
MediaStreamTrack
object. - Resolved
Value Constraint - A constraint specifying a single accepted value.
- Resolved
Value Range Constraint - A constraint specifying a range of accepted values.
- Resolved
Value Sequence Constraint - A constraint specifying a sequence of accepted values.
- Sanitized
Media Track Constraint - A single non-empty constraint value for a
MediaStreamTrack
object.
Enums§
- Facing
Mode - The directions that the camera can face, as seen from the user’s perspective.
- Media
Track Capability - A single capability value of a
MediaStreamTrack
object. - Media
Track Constraint - A single constraint value for a
MediaStreamTrack
object. - Media
Track Constraint Resolution Strategy - The strategy of a track constraint.
- Media
Track Setting - A single setting value of a
MediaStreamTrack
object. - Resize
Mode - The means by which the resolution can be derived by the client.
- Resolved
Media Track Constraint - A single constraint value for a
MediaStreamTrack
object with its potential bare value either resolved to anexact
orideal
constraint. - Value
Constraint - A bare value or constraint specifying a single accepted value.
- Value
Range Constraint - A bare value or constraint specifying a range of accepted values.
- Value
Sequence Constraint - A bare value or constraint specifying a sequence of accepted values.
Type Aliases§
- Advanced
Media Track Constraints - Advanced media track constraints that contain sets of either bare values or constraints.
- Bool
OrMedia Track Constraints - A boolean on/off flag or bare value or constraints for a
MediaStreamTrack
object. - Mandatory
Media Track Constraints - The list of mandatory constraint sets for a
MediaStreamTrack
object. - Media
Stream Constraints - The constraints for a
MediaStream
object. - Media
Track Constraint Set - Media track constraint set that contains either bare values or constraints.
- Media
Track Constraints - Media track constraints that contains either bare values or constraints.
- Resolved
Advanced Media Track Constraints - Advanced media track constraints that contain sets of constraints (both, empty and non-empty).
- Resolved
Mandatory Media Track Constraints - The list of mandatory constraint sets for a
MediaStreamTrack
object. - Resolved
Media Track Constraint Set - Media track constraint set that contains only constraints (both, empty and non-empty).
- Resolved
Media Track Constraints - Media track constraints that contains only constraints (both, empty and non-empty).
- Sanitized
Mandatory Media Track Constraints - Set of mandatory media track constraints that contains only non-empty constraints.
- Sanitized
Media Track Constraint Set - Media track constraint set that contains only non-empty constraints.
- Sanitized
Media Track Constraints - Media track constraints that contains only non-empty constraints.