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