module App_sink:sig..end
App sinks.
type t
val of_element : Gstreamer.Element.t -> t
val pull_buffer_data : t -> Gstreamer.dataPull a buffer in data format.
val pull_buffer_string : t -> stringPull a buffer in string format.
val emit_signals : t -> unitEnable signal emitting.
val is_eos : t -> boolCheck whether the end of stream was reached.
val on_new_sample : t -> (unit -> unit) -> unitRegister 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 -> unitSet the maximal number of internal buffers.