package gstreamer

  1. Overview
  2. Docs

Module Gstreamer.ElementSource

Elements.

Sourcetype t

An element.

Sourceval set_property_string : t -> string -> string -> unit
Sourceval set_property_int : t -> string -> string -> unit
Sourceval set_property_bool : t -> string -> string -> unit
Sourcetype state =
  1. | State_void_pending
  2. | State_null
  3. | State_ready
  4. | State_paused
  5. | State_playing

State of an element.

Sourceval string_of_state : state -> string

String representation of a state.

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

Return value for state change.

Sourceval set_state : t -> state -> state_change
Sourceval 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.

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

Current position of an element.

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

Duration of an element.

Sourceval 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.