[Live-devel] help needed
Ross Finlayson
finlayson at live.com
Tue Nov 16 02:54:39 PST 2004
>I'm a newbie to livemedia and I want to stream video (MPEG4ES and MJPEG)
>in unicast. Video data are issued from cameras or from encoding
>treatments. I wanted to know what is the way to stream these data directly
>from a buffer and not from a file.
>Must I make new classes which inherit from existing ?
Yes, you will need to write a new subclass of "FramedSource", and use this
(instead of "ByteStreamFileSource").
See <http://www.live.com/liveMedia/faq.html#liveInput>.
Also, because you wish to stream unicast (presumably on-demand, from a RTSP
server, as is done by the "testOnDemandRTSPServer" test program), you will
also need to write a subclass of "OnDemandServerMediaSubsession" that
implements the virtual functions:
- createNewStreamSource() (which will create an instance of your
new "FramedSource" subclass), and
- createNewRTPSink()
You will probably also want to set the "reuseFirstSource" parameter (to the
"OnDemandServerMediaSubsession" constructor) to True, so that your input
buffer is read only once, regardless of how many concurrent clients you have.
Ross Finlayson
LIVE.COM
<http://www.live.com/>
More information about the live-devel
mailing list