Module Media.PropSource
Media objects properties, capabilities and constraints.
Ranges and constraints
Properties
The type for properties of type 'a whose capabilities are described by 'b and which are constrained by 'c.
The type for boolean properties.
bool n is a bool property named n.
type int_t =
(int, Brr_io.Media.Prop.Int.Range.t, Brr_io.Media.Prop.Int.Constraint.t)
Brr_io.Media.Prop.tThe type for integer properties.
int n is an integer property named n.
type float_t =
(float,
Brr_io.Media.Prop.Float.Range.t,
Brr_io.Media.Prop.Float.Constraint.t)
Brr_io.Media.Prop.tThe type for floating point properties.
float n is a float property named n.
type jstr_t =
(Brr_io.Media.Prop.Jstr.t,
Brr_io.Media.Prop.Jstr.t,
Brr_io.Media.Prop.Jstr.Constraint.t)
Brr_io.Media.Prop.tThe type for string properties.
jstr n is a string property named n.
type jstr_enum_t =
(Brr_io.Media.Prop.Jstr.t,
Brr_io.Media.Prop.Jstr.t list,
Brr_io.Media.Prop.Jstr.Constraint.t)
Brr_io.Media.Prop.tThe type for string enumeration properties.
jstr n is a string enumeration property named n.
Low-level interface
'a conv specifies encoding and decoding functions for JavaScript.
val v :
Brr_io.Media.Prop.Jstr.t ->
'a Brr_io.Media.Prop.conv ->
'b Brr_io.Media.Prop.conv ->
'c Brr_io.Media.Prop.conv ->
('a, 'b, 'c) Brr_io.Media.Prop.tv v_conv cap_conv constr_conv n is a new property named n whose values are converted with v_conv, capabilities with cap_conv and constraints with constr_conv.
name p is the name of the property.
of_jv p jv is the property value of p from jv.
to_jv p v is the JavaScript value of p for v.
cap_of_jv p jv is the property capability of p from jv.
cap_jv p v is the capability value of p for v.
cap_of_jv p jv is the property constraint of p from jv.
cap_jv p v is the cosntraint value of p for v.