[Live-devel] Meaning of member variables in FramedSource class

Ross Finlayson finlayson at live555.com
Tue Oct 19 14:49:29 PDT 2010


See "liveMedia/DeviceSource.cpp" for a description (in the comments) 
of these fields.

Some more specific comments:
>- fPresentationTime - Needs to be set by me. What is this time? Is 
>this required?

Yes!


>   My encoder provide a relative time which is number of ticks since 
>some original. Do I have to translate that to the real unix time?

Yes.  The "presentationTime" values must be aligned with 'wall-clock 
time' - i.e., the time that you would get by calling "gettimeofday()".


>- fDurationInMicroseconds - Needs to be set by me. Again is this 
>required? What happens if this field is set to zero? or not set at 
>all.

If it's not set at all, it keeps its default value, of zero.  If your 
data source is live (e.g., from an encoder), then you usually don't 
need to set this.  However, if your data source is pre-recorded data 
(e.g., a file), then you should set this.

I'm not going to bother answering your questions about the rest of 
the code, because you shouldn't need to care about it.  But if you're 
curious: Remember, You Have Complete Source Code.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list