Sorry for the inconvienience.<br><br>I want to update start and stop values of the playback segment. <br><br>In my player application am downloading http stream into a tmp file(this is done in one pipeline)<br>and for playback I have another pipeline playing data from this tmp file.<br>
<br>Sometimes when the download rate is too slow. The pipeline emits<br>EOS signal on reaching EOF of tmp file and the playback stops.<br>Now I want to continue plaback once enough data is available for playback.<br>To do this am querying the position of the last left data and seeking to that position.<br>
<br>This is what I was refering to new segment.<br><br>Thanks,<br>Jyoti<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Wim Taymans</b> <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com" target="_blank">wim.taymans@gmail.com</a>></span><br>
Date: Wed, Dec 23, 2009 at 7:25 PM<br>Subject: Re: [gst-devel] New segment update<br>To: Discussion of the development of GStreamer <<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>><br>
<br><br><div>On Wed, 2009-12-23 at 17:21 +0530, Jyoti wrote:<br>
> Hi All,<br>
><br>
> For my player application am required to frequently update the<br>
> playback<br>
> segment values. Currently am seeking the first segment as below:<br>
><br>
> gst_element_seek<br>
> (<br>
> pipeline,<br>
> 1.0,<br>
> GST_FORMAT_TIME,<br>
> GST_SEEK_FLAG_SEGMENT, SEEK_TYPE_SET,<br>
> (0 * GST_SECOND),<br>
> GST_SEEK_TYPE_NONE,<br>
> -1<br>
> );<br>
><br>
> After sometime I get GST_MESSAGE_SEGMENT_DONE. Now I want to update<br>
> the my NEW_SEGMENT from the last<br>
> played value to the total duration.<br>
<br>
</div>Since you configured the playback segment to play to the end of the<br>
stream, the SEGMENT_DONE message is posted as soon as the last byte of<br>
the data is pushed in the pipeline (by the demuxer or source).<br>
<br>
In light of this, your question does not make any sense. What are you<br>
trying to do?<br>
<div><br>
><br>
><br>
> Can someone tell me how can I update the NEW_SEGMENT values.<br>
<br>
</div>What do mean with 'NEW_SEGMENT values'? Maybe you mean changing the<br>
playback segment start and stop values? Maybe you mean the values of the<br>
NEW_SEGMENT event?<br>
<div><br>
> And what changes to be done with pipeline state, before or after doing<br>
> the seek for<br>
> NEW_SEGMENT?<br>
<br>
</div>What's a 'seek for NEW_SEGMENT'? maybe you mean that you want to perform<br>
a segment seek? In any case, this has nothing to do with state changes.<br>
<br>
In general, seeking can be done in either PAUSED or PLAYING. Performing<br>
a non-flushing seek will usually block the caller until the PLAYING<br>
state is reached (so you usually want to perform non-flushing seeks in<br>
PLAYING).<br>
<br>
Wim<br>
><br>
> Thanks,<br>
> Jyoti<br>
<div><div></div><div>><br>
><br>
> ------------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Verizon Developer Community<br>
> Take advantage of Verizon's best-in-class app development support<br>
> A streamlined, 14 day to market process makes app distribution fast and easy<br>
> Join now and get one step closer to millions of Verizon customers<br>
> <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
> _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Verizon Developer Community<br>
Take advantage of Verizon's best-in-class app development support<br>
A streamlined, 14 day to market process makes app distribution fast and easy<br>
Join now and get one step closer to millions of Verizon customers<br>
<a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></div><br>