[Live-devel] How to stream from buffer address

Ross Finlayson finlayson at live.com
Tue May 17 08:07:46 PDT 2005


At 05:09 AM 5/17/05, you wrote:
>Look at liveMedia/DeviceSource.cpp.  You'll probably want to use that to 
>make your own source class.  The comments in the file get you started.

You will also need to write (and use) your own subclass of 
"ServerMediaSubsession" that:
1/ redefines the "createNewStreamSource" virtual function to create data 
source objects using your new class (instead of from a file), and
2/ Sets the "reuseFirstSource" parameter (to "createNew()") to True, so 
that only one such source object is actually created, regardless of the 
number of concurrent clients that you have.


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



More information about the live-devel mailing list