Gst.Query.new_duration
function new_duration(format:Gst.Format):Gst.Query { // Gjs wrapper for gst_query_new_duration() }
Constructs a new stream duration query object to query in the given format. Use gst_query_unref() when done with it. A duration query will give the total length of the stream.
Free-function: gst_query_unref
- format
the Gst.Format for this duration query
- Returns
a new Gst.Query