package gstreamer

  1. Overview
  2. Docs

Module Gstreamer.App_srcSource

App sources.

Sourcetype t
Sourceval to_element : t -> Element.t
Sourceval of_element : Element.t -> t
Sourceval push_buffer : t -> Buffer.t -> unit

Push a buffer.

Sourceval push_buffer_bytes : t -> ?presentation_time:Int64.t -> ?duration:Int64.t -> bytes -> int -> int -> unit

Push a buffer in bytes format.

Sourceval push_buffer_data : t -> ?presentation_time:Int64.t -> ?duration:Int64.t -> data -> int -> int -> unit

Push a buffer in data format.

Sourceval on_need_data : t -> (int -> unit) -> unit

Register a callback that will be called when data need to be fed into the source (the argument is the number of bytes needed by the source).

Sourceval end_of_stream : t -> unit

Emit an end of stream signal.

Sourceval set_format : t -> Format.t -> unit