<!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] question about
ServerMediaSubsession</title></head><body>
<blockquote type="cite" cite><font face="Verdana"
size="-1"> 1. In the test programmes, I wonder why
they use PassiveServerMediaSubsession to create a new subsession and
to begin streaming through
"sessionState.sink->startPlaying(*sessionState.source,
afterPlaying, NULL)"? And I found that inside of
PassiveServerMediaSubssion we did nothing</font></blockquote>
<blockquote type="cite" cite><font face="Verdana" size="-1">about
streaming.(Maybe I missed)</font></blockquote>
<blockquote type="cite" cite><font face="Verdana"
size="-1"> In my opinion,
RTSP is to control RTP(my understanding), so the
situation should be like this: method startPlaying should be
inside of ServerMediaSubssion so the streaming can be automatical. It
seems that OnDemandServerMediaSubssion is doing so but I still don't
quite understand.</font></blockquote>
<div><br></div>
<div>"PassiveServerMediaSubsession" is used to implement a
RTSP server for a stream (usually multicast) that already exists
before the client accesses it (using RTSP). Therefore, for such
a stream, we call "startPlaying" once, before (and
independent of) each RTSP request.</div>
<div><br></div>
<div>"OnDemandServerMediaSubsession", however, is used to
implement a RTSP server that creates and serves new streams, on
demand. I.e., a new stream is created for each RTSP client
request. Therefore, for such a stream we call
"startPlaying" for each RTSP request. This is done in
the "OnDemandServerMediaSubsession" code.</div>
<div><br></div>
<blockquote type="cite" cite><font face="Verdana"
size="-1"> 2. When I test testMP3Steamer, the
unicast address is pretty good, however, when the address is multicast
address such as 232.255.42.42, although I add USE_SSM inside of
Makefile, client using VLC within windows does not work while within
linux works.</font></blockquote>
<blockquote type="cite" cite><font face="Verdana"
size="-1"> Why? I am
puzzled.</font></blockquote>
<div><br></div>
<div>So am I. I suggest using the "testOnDemandRTSPServer"
demo application (a unicast RTSP server) instead.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>