Gst.Caps.prototype.can_intersect

function can_intersect(caps2:Gst.Caps):Boolean {
    // Gjs wrapper for gst_caps_can_intersect()
}

Tries intersecting caps1 and caps2 and reports whether the result would not be empty

caps2

a Gst.Caps to intersect

Returns

true if intersection would be not empty