Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I have a C# application with an embedded Windows Media Player object. Everything works fine however I am trying to programatically skip to a certain chapter on a DVD which is running locally. If you run a DVD in WMP itself all chapters are listed, grouped into several playlists/titles (eg. Title1 - Chapter 1, Chapter 2, Title2 - Chapter 1, Chapter 2 etc). Then if you click on the Chapter it skips to that scne. This is exactly what I am after.
I can get the current playlist/title usig
C#
axWindowsMediaPlayer1.currentPlaylist
and jump to each chapter in the playlist/title however its limited to that particular Title on the DVD. What I need is a way to list every title and chapter in the DVD.

Some further info... I run the DVD from a local hard drive using the following code (funny enough I can chose here (//Z/x/y) to jump to a certain title and chapter however I don't want to keep reloading for this functionality)

C#
axWindowsMediaPlayer1.URL = "wmpdvd://Z/1/1?contentdir=c:\\folderContainingVOBFiles";


I have tried the next line of code however it produces an array of empty playlists (I think their favorite playlists) that have nothing to do with the DVD
C#
axWindowsMediaPlayer1.playListCollection.GetAll()


Has anyone had any experience with this cause its sending me crazy. I just want a command where I say axWindowsMediaPlayer1.CTLControls.SkipTo(x,y) where x is the Title and y is the chapter.

Any help would be greatly appreciated as I cant seem to find any answers on this.
Thanks heaps
Danny
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900