Bus.connectSyncMessage

gulong connectSyncMessage(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gst.message.Message))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gst.bus.Bus))) && Parameters!T.length < 3)

Connect to SyncMessage signal.

A message has been posted on the bus. This signal is emitted from the thread that posted the message so one has to be careful with locking.

This signal will not be emitted by default, you have to call [gst.bus.Bus.enableSyncMessageEmission] before.

Parameters

detailSignal detail or null (default)
callbacksignal callback delegate or function to connect void callback(gst.message.Message message, gst.bus.Bus bus) message the message that has been posted synchronously (optional) bus the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID