Gst.Bus.prototype.add_signal_watch_full

function add_signal_watch_full(priority:Number):void {
    // Gjs wrapper for gst_bus_add_signal_watch_full()
}

Adds a bus signal watch to the default main context with the given priority (e.g. %G_PRIORITY_DEFAULT). It is also possible to use a non-default main context set up using GLib.push_thread_default (before one had to create a bus watch source and attach it to the desired main context 'manually').

After calling this statement, the bus will emit the "message" signal for each message posted on the bus when the main loop is running.

This function may be called multiple times. To clean up, the caller is responsible for calling Gst.remove_signal_watch as many times as this function is called.

There can only be a single bus watch per bus, you must remove any signal watch before you can set another type of watch.

MT safe.

priority

The priority of the watch.