Crate webrtc_constraints
source ·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 as defined in the “Media Capture and Streams” spec.
Errors, as defined in the “Media Capture and Streams” spec.
Convenience macros.
Constants identifying the properties of a
MediaStreamTrack
object,
as defined in the “Media Capture and Streams” spec.Macros
A convenience macro for defining “advanced” constraints.
A convenience macro for defining constraint sets.
A convenience macro for defining constraints.
A convenience macro for defining “mandatory” constraints.
A convenience macro for defining settings.
A convenience macro for defining individual “value” constraints.
A convenience macro for defining individual “value range” constraints.
A convenience macro for defining individual “value sequence” constraints.
Structs
The capabilities of a
MediaStreamTrack
object.The settings of a
MediaStreamTrack
object.The list of constraints recognized by a User Agent for controlling the
capabilities of a
MediaStreamTrack
object.A constraint specifying a single accepted value.
A constraint specifying a range of accepted values.
A constraint specifying a sequence of accepted values.
A single non-empty constraint value for a
MediaStreamTrack
object.Enums
The directions that the camera can face, as seen from the user’s perspective.
A single capability value of a
MediaStreamTrack
object.A single constraint value for a
MediaStreamTrack
object.The strategy of a track constraint.
A single setting value of a
MediaStreamTrack
object.The means by which the resolution can be derived by the client.
A single constraint value for a
MediaStreamTrack
object
with its potential bare value either resolved to an exact
or ideal
constraint.A bare value or constraint specifying a single accepted value.
A bare value or constraint specifying a range of accepted values.
A bare value or constraint specifying a sequence of accepted values.
Type Definitions
Advanced media track constraints that contain sets of either bare values or constraints.
A boolean on/off flag or bare value or constraints for a
MediaStreamTrack
object.The list of mandatory constraint sets for a
MediaStreamTrack
object.The constraints for a
MediaStream
object.Media track constraint set that contains either bare values or constraints.
Media track constraints that contains either bare values or constraints.
Advanced media track constraints that contain sets of constraints (both, empty and non-empty).
The list of mandatory constraint sets for a
MediaStreamTrack
object.Media track constraint set that contains only constraints (both, empty and non-empty).
Media track constraints that contains only constraints (both, empty and non-empty).
Set of mandatory media track constraints that contains only non-empty constraints.
Media track constraint set that contains only non-empty constraints.
Media track constraints that contains only non-empty constraints.