Movie Player ActiveX Control

ChapterOpenFile

 

Open the media file and read the chapter information. If your video file include Chapters, e.g MP4, MKV video, it can read it )

Public Function ChapterOpenFile( _
  ByVal strFileName As String
)

 

Parameter
strFileName
Specifies the path of video file for reading chapters.

Return Value
True - Success, False- Failed

Example

   

Visual Basic Syntax
MoviePlayer1.ChapterOpenFile "c:\yourfolder\yourfile.mp4"
iCount = Me.MoviePlayer1.ChapterReadChapterCount
For i = 0 To iCount - 1
     List1.AddItem MoviePlayer1.ChapterReadChapterName(i) + " " +
     Str (MoviePlayer1.ChapterReadChapterTime(i))
Next
MoviePlayer1.ChapterCloseFile