IEMediaFoundationTimeToSec
Declaration
function IEMediaFoundationTimeToSec(time: int64): Double;
Description
Converts Media Foundation times (100 nanosecond units) to seconds (There are 1 billion nanoseconds to a second).
Parameter | Description |
time | The Media Foundation time in 100 nanosecond units |
// Display length in seconds
if IEMediaFoundationTimeToSec(ImageEnView1.IO.MediaFoundationSourceReader.Duration) < 1 then
lblLength.Caption := '< 1 Sec.'
else
lblLength.Caption := format('%d Sec.', [Round(IEMediaFoundationTimeToSec(ImageEnView1.IO.MediaFoundationSourceReader.Duration))]);
See Also
◼IESecToMediaFoundationTime
◼IEMediaFoundationTimeToStr