Seeking Audio and Video?

killerrats koreysjunkmail at gmail.com
Tue Feb 12 18:04:10 UTC 2019


found out how to do it.
*gint64 newSeek = 10;*GstQuery *query;gint64 start, end;query =
gst_query_new_seeking(GST_FORMAT_TIME);if (gst_element_query(playbin,
query)) {	gst_query_parse_seeking(query, NULL, &aSeek_enabled, &start,
&end);	if (aSeek_enabled) {	
gst_element_seek_simple(this->aRtspPipeConstruct.playbin, GST_FORMAT_TIME,		
(GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT),*newSeek* *
GST_SECOND);}	else         {	      g_print("Seeking is DISABLED for this
stream.\n");	}}else {	g_printerr("Seeking query
failed.");}gst_query_unref(query);




-----
------------------------------
Gstreamer 1.14.4
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190212/94dcb40d/attachment.html>


More information about the gstreamer-devel mailing list