Gst.Caps.prototype.to_string

function to_string():String {
    // Gjs wrapper for gst_caps_to_string()
}

Converts caps to a string representation. This string representation can be converted back to a Gst.Caps by Gst.caps_from_string.

For debugging purposes its easier to do something like this: |[ GST_LOG ("caps are %" GST_PTR_FORMAT, caps); ]| This prints the caps in human readable form.

Returns

a newly allocated string representing caps.