Module Gstreamer.App_src

module App_src: sig .. end

App sources.


type t 
val to_element : t -> Gstreamer.Element.t
val of_element : Gstreamer.Element.t -> t
val push_buffer : t -> Gstreamer.Buffer.t -> unit

Push a buffer.

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

Push a buffer in bytes format.

val push_buffer_data : t ->
?presentation_time:Stdlib.Int64.t ->
?duration:Stdlib.Int64.t -> Gstreamer.data -> int -> int -> unit

Push a buffer in data format.

val 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).

val end_of_stream : t -> unit

Emit an end of stream signal.

val set_format : t -> Gstreamer.Format.t -> unit