Gst.Pad.prototype.add_probe

function add_probe(mask:Gst.PadProbeType, callback:Gst.PadProbeCallback):Number {
    // Gjs wrapper for gst_pad_add_probe()
}

Be notified of different states of pads. The provided callback is called for every state that matches mask.

mask

the probe mask

callback

Gst.PadProbeCallback that will be called with notifications of the pad state

Returns

an id or 0 on error. The id can be used to remove the probe with Gst.remove_probe. MT safe.