Jump to content

Playing VLC Video


Recommended Posts

Good morning. I am just playing around with the VLC.au3 features and I am having problems. Is this still the best way to play video? The example script works on my PC but my script doesn't play anything. The VLC window shows up in my GUI and I get no errors but nothing plays. Also, do you think it would be possible to overlay a GUI label over the VLC video? 

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <VLC.au3>
Global $hhPath = "I:\HHstorm.avi"
_VLCErrorHandlerRegister()
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Haunted House", 1250, 910, 8, 4)
Global $vlc1 = _GUICtrlVLC_Create(0, 50, 800, 450)
_GUICtrlVLC_Play($vlc1, $hhPath)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

EndSwitch
WEnd

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...