Gst.Structure.prototype.fixate_field_nearest_fraction

function fixate_field_nearest_fraction(field_name:String, target_numerator:Number, target_denominator:Number):Boolean {
    // Gjs wrapper for gst_structure_fixate_field_nearest_fraction()
}

Fixates a Gst.Structure by changing the given field to the nearest fraction to target_numerator/target_denominator that is a subset of the existing field.

field_name

a field in structure

target_numerator

The numerator of the target value of the fixation

target_denominator

The denominator of the target value of the fixation

Returns

TRUE if the structure could be fixated