AppSink.connectNewSample
gulong connectNewSample(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == gst.types.FlowReturn)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstapp.app_sink.AppSink)))
&& Parameters!T.length < 2)Connect to NewSample signal.
Signal that a new sample is available.
This signal is emitted from the streaming thread and only when the "emit-signals" property is true.
The new sample can be retrieved with the "pull-sample" action signal or [gstapp.app_sink.AppSink.pullSample] either from this signal callback or from any other thread.
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.
Parameters
callback | signal callback delegate or function to connect gst.types.FlowReturn callback(gstapp.app_sink.AppSink appSink) appSink the instance the signal is connected to (optional) Returns |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID