<!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] File source is socket stream in
RTSPServe</title></head><body>
<blockquote type="cite" cite><font face="Arial"
size="-1"> It's can work
correctly, but this is via multicast, Our customer want unicast.
So I follow
"testOnDemandRTSPServer.cpp",</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">but this
module wrapped how to get file source in method
"doEventLoop", and it seems that not support read socket as
file source, because </font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">my file
source isn't a local file, so I don't know how to get my socket file
source. If you know or have this experience, pls tell me,
Thanks~ </font></blockquote>
<div><br></div>
<div>See the following FAQ entry:
http://www.live555.com/liveMedia/faq.html#liveInput-unicast</div>
<div>I think this will help you with your application.</div>
<div><br></div>
<div>If your input device is a socket, then you should be able to
encapsulate it in a "FramedSource" subclass that uses the
"DeviceSource.cpp" code as a model, and use
"TaskScheduler::turnOnBackgroundReadHandling()" to schedule
a handler that reads from the socket whenever new data arrives.
(Note the comments in "liveMedia/DeviceSource.cpp")</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>