how to get current playing time from application?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to get current playing time from application?

vijayp
Hi,
 
   I am writting a parser and decoder plugin for wma decoder.
   I need to know how to get the cuurrent playing time from the application?
 
Regards,
Vijay P

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to get current playing time from application?

Vineeth-2
You can use gst_element_query_duration() to get the duration of the stream.
Use gst_element_query_position() to get current position of playback.
--vineeth


On Fri, Aug 5, 2011 at 11:36 AM, vijay <[hidden email]> wrote:
Hi,
 
   I am writting a parser and decoder plugin for wma decoder.
   I need to know how to get the cuurrent playing time from the application?
 
Regards,
Vijay P

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel