RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMediaPlayer.TimeFormat Property

Determines the format used to specify position information.

Pascal
property TimeFormat: TMPTimeFormats;
C++
__property TMPTimeFormats TimeFormat;

TimeFormat determines how the StartPos, Length, Position, Start, and EndPos properties are interpreted. For example, if Position is 180 and TimeFormat is tfMilliseconds, the current position is 180 milliseconds into the medium. If Position is 180 and TimeFormat is tfMSF, the current position is 180 minutes into the medium. 

Not all formats are supported by every device. When trying to set an unsupported format, the assignment is ignored. 

The current timing information is always passed in a 4-byte integer. In some formats, the timing information returned is not really one integer, but single bytes of information packed in the long integer. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!