<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>Could you give me directions how to add a ServerMediaSession to a running RTSPServer.</div></blockquote><div><br></div>Call "RTSPServer::addServerMediaSession()". You can do this at any time. (Ditto for "RTSPServer::removeServerMediaSession()".)</div><div><br></div><div><br><blockquote type="cite"><div> I have started the RTSPServer in a pthread and wanted to add a new ServerMediaSession to it from another thread</div></blockquote><div><br></div>When you read the FAQ - as you were asked to do before posting to this mailing list - you will have learned that LIVE555 applications run in a single-threaded event loop, and that you should not call LIVE555 code (except perhaps for "triggerEvent()") from a separate thread.</div><div><br></div><div>Because LIVE555 applications run within an event loop, if you want to add a new "ServerMediaSession" object to your RTSP server, then this must happen in an event handler - i.e., in response to an event that gets handled within the event loop.</div><div><br></div><div>You can, however, trigger events from a separate thread, using the "event trigger" mechanism (again, described in the FAQ).</div><div><br></div><div><br><blockquote type="cite"><div>I also want to ask you for directions how to implement on demand streaming based on frames available in the memory instead of reading them from files.<br></div></blockquote></div><br><div>If your memory buffer is static (i.e., its contents do not change), then you can use the "ByteStreamMemoryBufferSource" class (instead of "ByteStreamFileSource"). Otherwise, you will need to write your own source class - perhaps based on the "DeviceSource" code - as described in the FAQ.</div><div><br></div><div>Everybody, please read the FAQ!</div><div><br></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span>
</div>
<br></body></html>