<div dir="ltr">You may prefer to read open source player implementation, such as totem media player to start with (simple player).<div>That may answer many questions on user operations with multimedia playback.</div><div><br></div><div>Regards,</div><div>Nitin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 14, 2017 at 3:54 PM, jmz <span dir="ltr"><<a href="mailto:jmzheng@gmail.com" target="_blank">jmzheng@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I also want to develop a testplayer application linking with a playback.c<br>
library (GStreamer-based codes) to use functions such as play, stop, etc.<br>
<br>
My testplayer calls playback_create function to create a new thread which<br>
invokes playback_main function. Then, the playback_main sets up pipeline and<br>
finally calls g_main_loop_run(). The testplayer will receive user commands<br>
in a while loop to manipulate several playback pipelines.<br>
<br>
My first question is: is my design (creating a new thread which runs event<br>
loop) appropriate for this scenario?<br>
<br>
My second question is: how does the testplayer control the pipeline? For<br>
example, how to design a playback_stop function to be used by testplayer for<br>
stopping a pipeline?<br>
<br>
ps. I need to develop playback.c although gstplayer may be useful.<br>
<br>
Thanks<br>
<br>
Le mardi 31 janvier 2017 à 04:31 -0800, deepthips a écrit :<br>
> I have a gstreamer code (say playback.c) with basic functions such as<br>
> load,<br>
> play, stop, seek etc.<br>
> I have a testapp which will link the playback.c library and call those<br>
> functions.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Callback-from-gstreamer-to-application-tp4681667p4683376.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Callback-from-<wbr>gstreamer-to-application-<wbr>tp4681667p4683376.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div>