Movie Player ActiveX Control

ChapterReadChapterCount

 

Return the count of chapters.

Public Function ChapterReadChapterCount() As Integer

 

No Parameter


Return Value
Return the total count for chapters.

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