<br><br><div class="gmail_quote">2010/1/28 Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
.Because I am using multiple thread here<br>
</blockquote>
<br></div>
I hope you've read the FAQ entry on threads.<div class="im"><br>
Yes.I read the FAQ very carefully. I'm sorry that I misundstood your answer just now.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Or can I follow the existed testOnDemandRTSPServer and write my own subclass of OnDemandServerMediaSubsessionto stream live source?<br>
</blockquote>
<br></div>
Yes. To stream via unicast (rather than multicast) you use a subclass of "OnDemandServerMediaSubsession" (rather than "PassiveServerMediaSubsession").<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If I can, should createNewStreamSource returns the same soure instead of FramedSource::createNew?<br>
</blockquote>
<br></div>
No, "createNewStreamSource" must create a new source object each time. Note, however, that if the "reuseFirstParameter" (to the "OnDemandServerMediaSubsession" constructor) is True, then the same input source will be used for all clients, and "createNewStreamSource" will (in most cases) be called only once. If you are streaming from a live data source (rather than from a file), then you should usually set "reuseFirstParameter" to True.<div>
<div></div><div class="h5"><br></div></div></blockquote><div> Thanks.Then I don't worry about updating all the FramedSource after getting a new frame.<br> Yes,this is an effective method.However, could I do the following to stream live video?It maybe <br>
familiar to multicast.<br> <br> The server is following the "test***streamer" example.A client connects to the server.When <br> the server receives the "PLAY" command,it adds the client's IP to a list or array, every time a <br>
packet is sent, it will be sent to all the IP in the list.And when one client tears down,the server <br> removes its IP from the list.So that the next packet won't be sent to the client.<br> <br> Is it impossible or does this work take much time ?I have very little knowlege about socket,so if what I said is silly,please don't laugh at me:)<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
-- <br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a><br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div></div></blockquote></div><br>