module Element:sig..end
Elements.
type t
An element.
val set_property_string : t -> string -> string -> unit
val set_property_int : t -> string -> string -> unit
val set_property_bool : t -> string -> string -> unit
type state =
| |
State_void_pending |
| |
State_null |
| |
State_ready |
| |
State_paused |
| |
State_playing |
State of an element.
val string_of_state : state -> stringString representation of a state.
type state_change =
| |
State_change_success |
| |
State_change_async |
| |
State_change_no_preroll |
Return value for state change.
val set_state : t ->
state -> state_change
val get_state : t ->
state_change * state *
stateCurrent state of an element: return value, current state and pending state.
val link : t -> t -> unitLink two elements.
val link_many : t list -> unitSequentially link a list of element.
val position : t -> Gstreamer.Format.t -> Stdlib.Int64.tCurrent position of an element.
val duration : t -> Gstreamer.Format.t -> Stdlib.Int64.tDuration of an element.
val seek_simple : t ->
Gstreamer.Format.t ->
Gstreamer.Event.seek_flag list -> Stdlib.Int64.t -> unitSeek to a given position relative to the start of the stream.