Gst.Pad.prototype.start_task

function start_task(func:Gst.TaskFunction):Boolean {
    // Gjs wrapper for gst_pad_start_task()
}

Starts a task that repeatedly calls func with user_data. This function is mostly used in pad activation functions to start the dataflow. The #GST_PAD_STREAM_LOCK of pad will automatically be acquired before func is called.

func

the task function to call

Returns

a true if the task could be started.