<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] First
Application</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1"
color="#000080">Okay, I understand. But do I've to use
doEventLoop()? If yes, how can I say doEventLoop to run the
continuePlaying()-methode of my subclass?</font></blockquote>
<div><br></div>
<div>You do what "openRTSP" (and the other receiving demo
applications) do:</div>
<div><x-tab> </x-tab>-
Call<x-tab>
</x-tab>YourSinkObject->startPlaying(...)<x-tab
> </x-tab>then</div>
<div><x-tab> </x-tab>-
Call<x-tab> </x-tab>doEventLoop()</div>
<div>The call to "startPlaying(...)" will cause your
"continuePlaying()" function to be called the first time.
After that, you call it again, after you receive (and process)
incoming data. See the code for "FileSink" for an
illustration of how this works.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial" size="-1"
color="#000080">And how can I run an Qt-app while doEventLoop runs? I
mean do EventLoop() never returns or can I make two
threads?</font></blockquote>
<div><br></div>
<div>Yes, provided that the Qt thread does not iteract with the
"LIVE555 event loop" thread - except perhaps using global
variables. See the FAQ.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>