Results 1 to 14 of 14

Thread: DVD Videos

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    DVD Videos

    VLC ActiveX Control (axVCL.dll): Does it not work with VB6? I installed it and it shows up in the component selection box. However, when I select it, there is a warning about name conflict.

    I want to try this control because the Windows Media Player (WMP) control works on Windows 7 and prior OS. WMP will not work on Windows 8 because I believe that Windows 8 does not come with a standard DVD decoder (research from google).

    Need help on getting the VLC control to work or another recommendation on a control to play DVD videos.
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: DVD Videos


  3. #3
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,238

    Re: DVD Videos

    I'm sure Windows 8 has Windows Media Player though I've never really used it I use VLC on all computers. Why not play the movie/file with ShellExecute API then it will use the default player?
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    Thanks Peter, I will look into that control.

    KeithUK, DVD won't play in Windows 8.
    http://windows.microsoft.com/en-CA/w...-playback-help

    Therefore, I can't use the wmp.dll activeX control.
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    Peter, I registered it and when try to play, "No such interface supported."

    Here is basic code to load:

    Code:
    Option Explicit
    
    Private Sub Form_Load()
        txtDVDFolder.Text = "E:\"
    End Sub
    
    Private Sub Form_Click()
        With MSWebDVD1
            .DVDDirectory = txtDVDFolder.Text
            .Play
        End With
    End Sub
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  6. #6
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: DVD Videos

    When I try your code I get a different error:
    -2147024809
    The parameter is incorrect.


    When I use "e:\\video_ts" instead of "e:\", your code works. Try that.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    Still the same problem. Were you able to do this in VB6 & Windows 7 (32 bit)?

    It is just as simple as register mswebdvd.dll and then selecting the component and then use the code above right? I am a bit confused why mine doesn't work.
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  8. #8
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: DVD Videos

    It works for me under Windows 7 64 bit and I'm afraid I'm out of ideas on how to help you.

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    Finally got this to work Peter.

    So here is the story. I have VB6 in a VirtualBox environment with 32 bit. I can't get the control to play but when I compile into an exe and run it on a 64 bit, then it worked. Of course, no sounds so I installed an AC3 filter and that took care of it too.

    I did notice when running in 64 bit, it flashes and then said that the "color scheme has been changed to windows 7 basic".

    Regardless, makes me wonder if my virtual environment is not working properly.
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  10. #10
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: DVD Videos

    Quote Originally Posted by Liquid Metal View Post
    Finally got this to work Peter.

    So here is the story. I have VB6 in a VirtualBox environment with 32 bit. I can't get the control to play but when I compile into an exe and run it on a 64 bit, then it worked. Of course, no sounds so I installed an AC3 filter and that took care of it too.

    I did notice when running in 64 bit, it flashes and then said that the "color scheme has been changed to windows 7 basic".

    Regardless, makes me wonder if my virtual environment is not working properly.
    Why are you running Visual Basic 6.0 in VirtualBox? It seems to run fine for me without a virtual machine. I think the color scheme changing to Windows 7 basic has to do with your program's compatibility settings. Right click the executable file in Explorer, open the Compatibility tab and check whether "Disable Visual Themes" is checked.

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    Why am I running VB6 in VirtualBox? Well, I don't use it much so I just install it there.

    I did your suggestion on the "Disable Visual Themes". Still did not work. Seems to be a common thing:
    http://www.sevenforums.com/tutorials...e-disable.html

    At least I got the main thing to work and now will test on Windows 8 soon. The ultimate test since WMP.dll did not work in Windows 8.

    Thanks
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    BTW Peter,

    Did you set any other settings for this control, beside the above code? When I load the form, the color scheme problem does not exist until I start to play the DVD.

    Also, is it possible to play it by folder, rather than DVD drive only?
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  13. #13
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: DVD Videos

    I did nothing special, just do the following:
    1. Download the DLL if you haven't done so.
    2. Add it as a component to your project.
    3. Draw an instance of the MSWebDVD control on your form.
    4. Set the DVDDirectory to a folder/drive containing a movie from/on a dvd.
    5. Use to the Play method to start the movie.

    Yes, it should also work if the movie is in a folder. I have no idea as to why it isn't working for you.

  14. #14

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: DVD Videos

    Well, thanks for pointing me in the right direction.
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width