[Live-devel] On demand RTSP Unicast server question

Dixon Siu dixonsiu at mediaglue.co.jp
Tue Jul 13 10:59:10 PDT 2004


Hi Ross,

Thanks for the suggestion which is exactly what I need. It will be similar
to what I did in DeviceSource which handles buffer reading instead of file
reading.

> To stream a MPEG-1 or 2 Video Elementary Stream, unicast, on demand, from
> something that's not a file, you will need to do the following:
> 1/ Write your own 'source' object that encapsulates your video
> stream source.
> 2/ Create your own subclass of "OnDemandServerMediaSubsession", and use
> this *instead of* "MPEG1or2FileServerMediaSubsession".  Your new
> class will
> be similar to "MPEG1or2FileServerMediaSubsession", except that the
> "createNewStreamSource()" virtual member function will create an
> object of
> your own source class (defined in 1/), *instead of* a
> "ByteStreamFileSource".
Challenging! Hope that this time I will do it correctly so that live.com can
use my code to benefit other users. :P

Regards,
Dixon



More information about the live-devel mailing list