from_string

function from_string(string:String):Gst.Caps {
    // Gjs wrapper for gst_caps_from_string()
}

Converts @caps from a string representation.

string

a string to convert to Gst.Caps

Returns

a newly allocated Gst.Caps