Jump to content

Playing Video in Background of Window


Recommended Posts

Hi everyone,

I'm attempting to use a video (AVI type) in the background of my window. I would like controls to be on top of the video(inputboxes and buttons, not the video controls). After hours of searching, I've seen multiple ways to play a video object in a window.

The AVICreate function included in Autoit doesn't seem to like my AVI filetype. I've converted it to many different types including motionjpg, but it still won't play it. The avi included in a simple 3fps 20x20 BMP video, so very basic. The documentation just says that AVIs are supported, but doesn't say anything about the codec because avis are simply the container. The codec can be any number of things. The video I want to play is a motionjpg codec, with no audio.

I finally got it playing using the WMP component within an IE object as indicated here: http://www.autoitscript.com/forum/index.php?showtopic=69509

The video plays great, but all of the controls(Inputtext boxes and buttons, not the video controls) are behind the video.

I was wondering if anyone had a better method to play a simple AVI file(with what codecs are supported) or how to get my controls behind the video.

Thanks so much!

john

aviexample.au3

video.au3

Edited by zimcraft
Link to comment
Share on other sites

  • 1 year later...

C:\Users\Batman\Desktop\aviexample.au3(47,45) : ERROR: WM_COMMAND(): undefined function.

GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")

but i tried to play looped videos high res and it seems to blink each loop.

ALso i thought this would play video on the background :graduated:

OH well.

Good work on the script. !!!

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