Gst.Sample.prototype.get_segment

function get_segment():Gst.Segment {
    // Gjs wrapper for gst_sample_get_segment()
}

Get the segment associated with sample

Returns

the segment of sample. The segment remains valid as long as sample is valid.