Library code snippets

Creating a DVD Player

Creating a DVD Player

You'll need the MSWEBDVD.DLL file to use this. You can download it here.

Creating a DVD player with this control is quite easy. Of course, you need a DVD-ROM on your computer as well.

Add 6 Command Buttons named: cmdPrevChapter, cmdPlay, cmdStop, cmdPause, cmdNextChapter, and cmdReplay. Then, go to your ProjectComponents field and find the MSWEBDVD Type 1.0 Library. Select it and click OK. Then, select the new component called MSWebDVD. Create the size you want your DVD player. It may pause your computer or slow it down for a moment no matter what speed you have, as I have an 800 MHz P3. Finally, add this code:

Private Sub cmdPrevChapter_Click()
Form1.dvd1.PlayPrevChapter
End Sub

Private Sub cmdPlay_Click()
Form1.dvd1.Play
End Sub

Private Sub cmdStop_Click()
Form1.dvd1.Stop
End Sub

Private Sub cmdPause_Click()
Form1.dvd1.Pause
End Sub

Private Sub cmdNextChapter_Click()
Form1.dvd1.PlayNextChapter
End Sub

Private Sub cmdReplay_Click()
Form1.dvd1.ReplayChapter
End Sub

Comments

  1. 28 Feb 2004 at 14:08

    i follow all the directions and it still doesnt work, i get an error saying cant play dvd video...  When i click play it highlights this as the error:
    Form1.dvd1.Play


    is there something im doing wrong?

  2. 24 Feb 2002 at 22:03
    Chris, great! Now what? Lets rock... I need to make it look like freekin WinDVD with sound controls and all AND get this... I want to add word recognition controls. Have you seen Wizards stuff?
    Help me out and I'll see your well taken care of if you get my meaning...
    Muppet
  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Creating a DVD Player.

Leave a comment

Sign in or Join us (it's free).

 Chris2
AddThis

Related discussion

Related podcasts

  • Christian Beauclair

    14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...

Want to stay in touch with what's going on? Follow us on twitter!