Gst.Structure.prototype.set_value
function set_value(fieldname:String, value:GObject.Value):void { // Gjs wrapper for gst_structure_set_value() }
Sets the field with the given name @field to value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed.
- fieldname
the name of the field to set
- value
the new value of the field