Hi Ross,<br><br>Thanks for your reply.<br><br>Yes, I am streaming from multiple live sources. And I've set the variable to True. I've created a class inherited from framedSource for receiving live sources. When a client, say for Real Player connect to the server, I found that an instance of my class is being constructed and destructed for getting frame, then it is recreated for rtp streaming.
<br><br>However, this flow will close my socket, as destructor is ran. So I am thinking if there is any ways to avoid it create and destroy for creating SDP ?<br><br>I am thinking if I need to create socket outside of my class, do you think it is the only approach?
<br><br>Thanks for your guidelines. <br><br>Regards,<br>Jacky<br><br><br><div><span class="gmail_quote">On 1/12/07, <b class="gmail_sendername">Ross Finlayson</b> <<a href="mailto:finlayson@live555.com">finlayson@live555.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>I've noticed my file is being opened 2 to 3 times before actual
<br>>streaming. After checking the code, the second open is for creating sdp<br>>format. Is there any ways that can avoid my files are being opened<br>>before actual streaming?<br><br>Not really. However, if you're streaming from a live source,
<br>remember to set the "reuseFirstSource" parameter (to each<br>"OnDemandServerMediaSubsession" subclass) to "True". If you do that,<br>you'll only read from the input stream once (no matter how many
<br>clients you get for it). (The initial data that gets read in order<br>to figure out the SDP description data will not get streamed.)<br>--<br><br>Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">
http://www.live555.com/</a><br>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">
http://lists.live555.com/mailman/listinfo/live-devel</a><br></blockquote></div><br>