[Live-devel] Jpeg live stream & OnDemandServer*

Ross Finlayson finlayson at live.com
Fri Apr 23 14:25:08 PDT 2004

At 02:06 AM 4/23/04, you wrote:
>Is it possible to use OnDemandServer* and "Jpeg Live frame"?

Yes, but first you would need to create two new classes:
1/ A subclass of "JPEGVideoSource" that encapsulates your JPEG source, and
2/ A new "JPEGVideoFileServerMediaSubsession" class, similar to the 
existing "*VideoFileServerMediaSubsession" classes, that creates - on 
demand - new instances of (i) your JPEGVideoSource subclass, and (ii) a 

1/ is going to be non-trivial, because your subclass would need to provide 
your own implementations of the pure virtual functions "type()", 
"qFactor()", "width()", and "height()".  (If you're planning to read from 
files, then the "qFactor()" function could be the tricky one, because the 
'Q factor' value is not directly present in files' JPEG header.)

	Ross Finlayson

More information about the live-devel mailing list