[Live-devel] (no subject)
Ross Finlayson
finlayson at live555.com
Thu Jan 28 02:07:35 PST 2010
>.Because I am using multiple thread here
I hope you've read the FAQ entry on threads.
>Or can I follow the existed testOnDemandRTSPServer and write my own
>subclass of OnDemandServerMediaSubsessionto stream live source?
Yes. To stream via unicast (rather than multicast) you use a
subclass of "OnDemandServerMediaSubsession" (rather than
"PassiveServerMediaSubsession").
>If I can, should createNewStreamSource returns the same soure
>instead of FramedSource::createNew?
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.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list