Gst.Pad.prototype.activate_mode

function activate_mode(mode:Gst.PadMode, active:Boolean):Boolean {
    // Gjs wrapper for gst_pad_activate_mode()
}

Activates or deactivates the given pad in mode via dispatching to the pad's activatemodefunc. For use from within pad activation functions only.

If you don't know what this is, you probably don't want to call it.

mode

the requested activation mode

active

whether or not the pad should be active.

Returns

TRUE if the operation was successful. MT safe.