Where can I get current pipeline's playing direction?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Where can I get current pipeline's playing direction?

wl2776
Administrator
I need to determine the current playback direction in my app., which was set by the _seek() call.
Since this call was issued from the function I wrote, in response to some user actions, it is possible to create additional variable(s) in my application and store the pipeline's internal state.
But I would like to avoid doubling the information in my application and use pipeline's internals.

My player should be able to perform framestepping backwards.
GStreamer design requires that I firstly set the reverse playback direction with the _seek() call.
However, this also configures the current playing segment and the playing can stop somewhere in the middle of a file. So I need to change these settings before, for example, step forward or play.