package gstreamer

  1. Overview
  2. Docs

Module Gstreamer.App_sinkSource

App sinks.

Sourcetype t
Sourceval of_element : Element.t -> t
Sourceval pull_buffer : t -> Buffer.t
Sourceval pull_buffer_data : t -> data

Pull a buffer in data format.

Sourceval pull_buffer_string : t -> string

Pull a buffer in string format.

Sourceval emit_signals : t -> unit

Enable signal emitting.

Sourceval is_eos : t -> bool

Check whether the end of stream was reached.

Sourceval 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.

Sourceval set_max_buffers : t -> int -> unit

Set the maximal number of internal buffers.