module App_sink:sig
..end
App sinks.
type
t
val of_element : Gstreamer.Element.t -> t
val pull_buffer_data : t -> Gstreamer.data
Pull a buffer in data format.
val pull_buffer_string : t -> string
Pull a buffer in string format.
val emit_signals : t -> unit
Enable signal emitting.
val is_eos : t -> bool
Check whether the end of stream was reached.
val on_new_sample : t -> (unit -> unit) -> unit
Register a callback which will be called whenever a sample (a buffer in
GStreamer terminology) is available. emit_signals
should be called first
in order for the callback to be called.
val set_max_buffers : t -> int -> unit
Set the maximal number of internal buffers.