Jump to content

_GUICtrlAVI_Create not working


Recommended Posts

Hi,

I have 1 video avi format and want it show on GUI

But I am having trouble with _GUICtrlAVI_Create function, it does not work, the video does not show on GUI, I see many ways in the forum but no answers for me. Please help me

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiAVI.au3>
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$hAVI = _GUICtrlAVI_Create($Form1, 'E:\Clip\team.avi', -1, 0,0, 301, 177)
GUISetState(@SW_SHOW)
_GUICtrlAVI_Play($hAVI)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit


EndSwitch
WEnd

This's video file: 

 

Note: download and rename file's name: team.rar then extract

tks ^^

Link to comment
Share on other sites

Hi,

I suspect that your video encoding is not supported by Windows.

Note: You should change your host file, this one is really shit (9Kb/s so I gave up).

Br, FireFox.

^^

What should I do now?

Tks ^^

Link to comment
Share on other sites

First of all, playing a video embedded in a GUI is crap. Secondly, if the user needs to install codecs...

What I mean is play it with a proper player like VLC or find another alternative.

Edited by FireFox
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...