s64 VideoPresentationTimeElapsed (void);
An s64 value that stores the number of microseconds elapsed since a new video image should have been displayed.
The value is greater than or equal to zero if the time to present (display) a new video image is reached, negative otherwise.
Gives the amount of time elapsed since a new video image should have been displayed, in microseconds.
The Player class is using the video frames timestamps to tell when presentation time is reached for a video image.
When no video images has already been presented (displayed) since the beginning of the movie playback the following steps are done in this method:
- it computes a playback presentation time reference with the current system time in microseconds and the timestamp in microseconds of the first video frame.
- it returns a greater than or equal to zero value, telling the user that a video image must be displayed immediatly.
When video images have already been presented (displayed) since the beginning of the movie playback the following steps are done in this method:
- it computes the difference between the current system time and the timestamp in microseconds of the video frame to present.
- it returns this computed difference that is greater than or equal to zero if the time has been reached, negative otherwise.