Changing RTSP speed while paused

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

Changing RTSP speed while paused

jml5qh
Is there a way to change the RTSP speed with rtspsrc while the stream is
paused such that resuming the stream will have the new speed?

I see some potential state that gets saved but resuming the stream doesn't
include the SPEED header.



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

Re: Changing RTSP speed while paused

jml5qh
A little more information: A normal seek command works while the stream is
paused. Once I resume the stream, the new position in the stream is set.
However, when changing the rate while the stream is paused does not work.
When I resume the stream, the same rate from before is set. Here's the code:

*Regular Seek*
gst_element_seek_simple((GstElement*)this->receiverPipeline,
GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH |
GST_SEEK_FLAG_KEY_UNIT), (gint)seconds * GST_SECOND);

*Change Playback Rate*
seek_event = gst_event_new_seek(
                            gdouble(rate),
                            GST_FORMAT_TIME,
                            (GstSeekFlags)(GST_SEEK_FLAG_TRICKMODE |
GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE),
                            GST_SEEK_TYPE_SET,
                            position,
                            GST_SEEK_TYPE_NONE,
                            0
                         );
//Send the playback rate event to the pipeline
gst_element_send_event((GstElement*)this->receiverPipeline, seek_event);

Is this correct? Do you expect the rate change seek to work when I resume
the stream?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel