Gst.Task.prototype.set_state

function set_state(state:Gst.TaskState):Boolean {
    // Gjs wrapper for gst_task_set_state()
}

Sets the state of task to state.

The task must have a lock associated with it using Gst.Task.prototype.set_lock when going to GST_TASK_STARTED or GST_TASK_PAUSED or this function will return false.

MT safe.

state

the new task state

Returns

true if the state could be changed.