ltmmMediaInfo.SourceDuration Property

Visual Basic Example

Syntax

object.SourceDuration As Long

Remarks

(Read only) This property is updated with the duration of the longest stream in the current source media file, in seconds. This property is updated automatically when the ltmmMediaInfo.SourceFile property is set to the current source media file.

The duration of the longest stream is based on normal playback speed. Changing the playback rate does not affect the duration.

The name of the current source media file can be found in the ltmmMediaInfo.SourceFile property. This is the file for which the ltmmMediaInfo object gets information. The ltmmMediaInfo.SourceFile property must be set before getting information from any of the other ltmmMediaInfo properties.

Call the ltmmMediaInfo.ResetSource method to release the source file when it is no longer needed.

See Also

Elements:

ltmmMediaInfo object, ltmmMediaInfo.SourceFile property, ltmmMediaInfo.SourceFilter property, ltmmMediaInfo.SourceFilterClassID property, ltmmMediaInfo.SourceFilterDispatch property, ltmmMediaInfo.SourceMediaType property, ltmmMediaInfo.SourceFormat property, ltmmMediaInfo.SourceFormatName property, ltmmMediaInfo.SourceFileSize property, ltmmMediaInfo.SourceBitRate property

Topics:

Multimedia Properties, Methods and Events,
Media File Information