<br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 6:17 PM, Marlos C. Machado <span dir="ltr">&lt;<a href="mailto:marlos@dcc.ufmg.br">marlos@dcc.ufmg.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I&#39;ve tried to seek the video out of the callback function and it fails, why?<br></blockquote><div><br>That is hard to guess. Maybe you should provide a snippet of your code to make it easier to identify the problem.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><div class="gmail_quote">2010/10/27 Marlos C. Machado <span dir="ltr">&lt;<a href="mailto:marlos@dcc.ufmg.br" target="_blank">marlos@dcc.ufmg.br</a>&gt;</span><div>

<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thanks for answering, but it is not working in my app.<br><br>The bus that catches EOS messages is never called, I mean, even when the video is over I do not know since the function is not invoked. Have this ever happened to you?<br>



<br>The code I&#39;m using is in the link I posted.<br><br>Anyway, thanks for answering and providing an example.<br><br><div class="gmail_quote">2010/10/27 Tristan Matthews <span dir="ltr">&lt;<a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a>&gt;</span><br>



<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>Hi Marlos,<br><br>You should have a bus callback as described here:<br>


<a href="http://www.gstreamer.net/data/doc/gstreamer/head/manual/html/chapter-bus.html#section-bus-howto" target="_blank">http://www.gstreamer.net/data/doc/gstreamer/head/manual/html/chapter-bus.html#section-bus-howto</a><br>




that will catch EOS messages, which are emitted when your stream is done playback. Upon getting this message, you need to call gst_element_seek on your playbin element with a seek position of 0, which will tell it to restart.<br>




<br>I posted a simple example here:<br><a href="http://tristanswork.blogspot.com/2010/10/looping-playback-with-gstreamer.html" target="_blank">http://tristanswork.blogspot.com/2010/10/looping-playback-with-gstreamer.html</a><br>



<br>-t<br><font color="#888888">
<br>-- <br>Tristan Matthews<br>email: <a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a><br>web: <a href="http://tristanswork.blogspot.com" target="_blank">http://tristanswork.blogspot.com</a><br>
</font><br></div></div>------------------------------------------------------------------------------<br>
Nokia and AT&amp;T present the 2010 Calling All Innovators-North America contest<br>
Create new apps &amp; games for the Nokia N8 for consumers in  U.S. and Canada<br>
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing<br>
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br>
<a href="http://p.sf.net/sfu/nokia-dev2dev" target="_blank">http://p.sf.net/sfu/nokia-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>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Marlos Cholodovskis Machado<br><br><br>
</font></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Marlos Cholodovskis Machado<br><br><br>
</font><br>------------------------------------------------------------------------------<br>
Nokia and AT&amp;T present the 2010 Calling All Innovators-North America contest<br>
Create new apps &amp; games for the Nokia N8 for consumers in  U.S. and Canada<br>
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing<br>
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br>
<a href="http://p.sf.net/sfu/nokia-dev2dev" target="_blank">http://p.sf.net/sfu/nokia-dev2dev</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Thiago Sousa Santos<br>