Gst.Sample.prototype.get_caps

function get_caps():Gst.Caps {
    // Gjs wrapper for gst_sample_get_caps()
}

Get the caps associated with sample

Returns

the caps of sample or NULL when there is no caps. The caps remain valid as long as sample is valid.