ltmmMediaInfo.SourceBitRate Property

Visual Basic Example

Syntax

object.SourceBitRate As Long

Remarks

(Read only) This property is updated with the calculated bit rate of the current source media file, in bits per second. This property is updated automatically when the ltmmMediaInfo.SourceFile property is set to the current source media file.

The bit rate with which this property is updated is calculated as follows:

BitRate = (FileSize * 8) / SourceDuration

Where FileSize and SourceDuration are found in the ltmmMediaInfo.SourceFileSize property and the ltmmMediaInfo.SourceDuration property, respectively.

The current source media file is 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 retrieving information from any of the other ltmmMediaInfo properties.

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

Platforms

Win32, x64

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.SourceDuration property, ltmmMediaInfo.SourceFileSize property

Topics:

Multimedia Properties, Methods and Events,
Media File Information