Gst.Element.prototype.query_duration

function query_duration(format:Gst.Format):Boolean {
    // Gjs wrapper for gst_element_query_duration()
}

Queries an element for the total stream duration.

format

the Gst.Format requested

Returns

TRUE if the query could be performed.