Article ID: 94012 - Last Review: February 23, 2007 - Revision: 2.2 Visual Basic MCI Control TimeFormat Property InformationThis article was previously published under Q94012 SUMMARY
The Multimedia Device Control (MCI.VBX) TimeFormat property does not
support all format settings with all device types. When you assign a value
to TimeFormat that is not supported by the device, the TimeFormat retains
its previous setting. This article also describes MCI_FORMAT_MSF (2) and shows how to separate the four bytes of a time value. MORE INFORMATION
To determine if the current device supports a particular TimeFormat
setting, assign the value to TimeFormat. Then check TimeFormat to see if it
returns the value assigned. For example:
The following list shows all possible settings for TimeFormat:
0 MCI_FORMAT_MILLISECONDS
The TimeFormat setting MCI_FORMAT_MSF is described in the README.TXT file
but is missing from the "Microsoft Visual Basic Professional Features
Custom Control Reference" for version 2.0. The following description of
MCI_FORMAT_MSF appears in the README.TXT file:
1 MCI_FORMAT_HMS 2 MCI_FORMAT_MSF 3 MCI_FORMAT_FRAMES 4 MCI_FORMAT_SMPTE_24 5 MCI_FORMAT_SMPTE_25 6 MCI_FORMAT_SMPTE_30 7 MCI_FORMAT_SMPTE_30DROP 8 MCI_FORMAT_BYTES 9 MCI_FORMAT_SAMPLES 10 MCI_FORMAT_TMSF
2 MCI_FORMAT_MSF Minutes, seconds, and frames are packed into a
The TimeFormat property affects the following properties.
four-byte integer. From least significant byte to most significant byte, the individual data values follow: Minutes (least significant byte) Seconds Frames Unused (most significant byte)
Position
Microsoft has confirmed that this information should be included in the
"Microsoft Visual Basic Professional Features Custom Control Reference"
for version 2.0. We will post new information here when the documentation
has been updated with this additional information.
From To Start Length TrackLength TrackPosition
| Article Translations
|
Back to the top
