package gstreamer

  1. Overview
  2. Docs

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 =
  1. | State_void_pending
  2. | State_null
  3. | State_ready
  4. | State_paused
  5. | State_playing

State of an element.

val string_of_state : state -> string

String representation of a state.

type state_change =
  1. | State_change_success
  2. | State_change_async
  3. | State_change_no_preroll

Return value for state change.

val set_state : t -> state -> state_change
val get_state : t -> state_change * state * state

Current state of an element: return value, current state and pending state.

Link two elements.

Sequentially link a list of element.

val position : t -> Format.t -> Int64.t

Current position of an element.

val duration : t -> Format.t -> Int64.t

Duration of an element.

val seek_simple : t -> Format.t -> Event.seek_flag list -> Int64.t -> unit

Seek to a given position relative to the start of the stream.

OCaml

Innovation. Community. Security.