AppSrc.connectPushBuffer

gulong connectPushBuffer(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] == gst.buffer.Buffer))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gstapp.app_src.AppSrc))) && Parameters!T.length < 3)

Connect to PushBuffer signal.

Adds a buffer to the queue of buffers that the appsrc element will push to its source pad.

This function does not take ownership of the buffer, but it takes a reference so the buffer can be unreffed at any time after calling this function.

When the block property is TRUE, this function can block until free space becomes available in the queue.

Parameters

callbacksignal callback delegate or function to connect gst.types.FlowReturn callback(gst.buffer.Buffer buffer, gstapp.app_src.AppSrc appSrc) buffer a buffer to push (optional) appSrc 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