<div dir="ltr">&nbsp;I&#39;m trying to find out the song&#39;s duration without playing the song.<br>&nbsp;Thus can there get the length of song on PAUSED mode of pipeline?<br><br>&nbsp;Using the example above:<br><br>&nbsp;query = gst_query_new_duration (GST_FORMAT_TIME);<br>
&nbsp;res = gst_element_query (pipeline, query);<br>&nbsp;if (res) {<br>&nbsp;&nbsp; gint64 duration;<br>&nbsp;&nbsp; gst_query_parse_duration (query, NULL, &amp;duration);<br>&nbsp;&nbsp; g_print (&quot;duration = %&quot;GST_TIME_FORMAT, GST_TIME_ARGS (duration));<br>
&nbsp;}<br>&nbsp;gst_query_unref (query);<br>&nbsp;<br>&nbsp;The artist and the title information have been shown as needed.<br>&nbsp;<br>&nbsp;-JD&nbsp;&nbsp;&nbsp;&nbsp; <br></div>