AppSink.connectNewSerializedEvent

gulong connectNewSerializedEvent(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstapp.app_sink.AppSink))) && Parameters!T.length < 2)

Connect to NewSerializedEvent signal.

Signal that a new downstream serialized event is available.

This signal is emitted from the streaming thread and only when the "emit-signals" property is true.

The new event can be retrieved with the "try-pull-object" action signal or [gstapp.app_sink.AppSink.pullObject] either from this signal callback or from any other thread.

EOS will not be notified using this signal, use #GstAppSink::eos instead. EOS cannot be pulled either, use [gstapp.app_sink.AppSink.isEos] to check for it.

Note that this signal is only emitted when the "emit-signals" property is set to true, which it is not by default for performance reasons.

The callback should return true if the event has been handled, which will skip basesink handling of the event, false otherwise.

Parameters

callbacksignal callback delegate or function to connect bool callback(gstapp.app_sink.AppSink appSink) appSink the instance the signal is connected to (optional) Returns
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID