Gst.Caps.prototype.is_subset

function is_subset(superset:Gst.Caps):Boolean {
    // Gjs wrapper for gst_caps_is_subset()
}

Checks if all caps represented by subset are also represented by superset. <note>This function does not work reliably if optional properties for caps are included on one caps and omitted on the other.</note>

superset

a potentially greater Gst.Caps

Returns

true if subset is a subset of superset