[Live-devel] On demand RTSP Unicast server question

Ross Finlayson finlayson at live.com
Mon Jul 12 14:22:45 PDT 2004


>Thank you very much for the reply. To confirm what you said, you mean stream
>a MPEG video stream from a file, right.

Yes.  That is what "testOnDemandRTSPServer" does.

>So it is no way to stream not from a file.

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".


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list