from_string

function from_string(features:String):Gst.CapsFeatures {
    // Gjs wrapper for gst_caps_features_from_string()
}

Creates a Gst.CapsFeatures from a string representation.

Free-function: gst_caps_features_free

Since 1.2

features

a string representation of a Gst.CapsFeatures.

Returns

a new Gst.CapsFeatures or NULL when the string could not be parsed. Free with Gst.CapsFeatures.prototype.free after use.