package gstreamer

  1. Overview
  2. Docs

App sinks.

type t
val of_element : Element.t -> t
val pull_buffer : t -> Buffer.t
val pull_buffer_data : t -> 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.

OCaml

Innovation. Community. Security.