Movie Maker Timeline Control

GetMediaDuration Method

Description

Get the duration of media file.

Syntax

Public Function GetMediaDuration( _
   ByVal strMediaFile as string, _
  ) as float

 

Parameter

strMediaFile
   the path of video/audio file.


Return Value

    return the duration of media file.

Example

Visual Basic Syntax
iDuration= TimelineControl1.GetMediaDuration(strMediaFile)