GetMediaInfo
|
GetMediaInfo Method |
Description
Get the duration, media information of media file.
Syntax
Public Function GetMediaInfo( _ |
Parameter
strMediaFile
the path of video/audio file
iDuration
return the duration of media file
iWidth
return the width of media file
iHeight
return the height of media file
iFrameRate
return the frame rate of media file
iVideoBitRate
return the video bitrate of media file
iAudioBitRate
return the audio bitrate of media file
iAudioSampleRate
return the audio sample rate of media file
iAudioChannels
return the audio channel of media file
iVideoStreamCount
return the video steam count of media file
strMediaContainer
return the string of container name
strVideoStreamFormat
return the string of video stream
strAudioStreamFormat
return the string of audio stream
Return Value
iDuration
return the duration of media file
iWidth
return the width of media file
iHeight
return the height of media file
iFrameRate
return the frame rate of media file
iVideoBitRate
return the video bitrate of media file
iAudioBitRate
return the audio bitrate of media file
iAudioSampleRate
return the audio sample rate of media file
iAudioChannels
return the audio channel of media file
iVideoStreamCount
return the video steam count of media file
strMediaContainer
return the string of container name
strVideoStreamFormat
return the string of video stream
strAudioStreamFormat
return the string of audio stream
Example
Visual Basic Syntax |