Page 1 of 1

How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 1:30 am
by 345138
Really, the question IS the title.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 5:09 am
by CodenStuff
Hello 345138,

What exactly do you mean by 'background'? .

You could add a Media Player control to your form and then use:
Code: Select all
AxWindowsMediaPlayer1.URL = "C:\MyVideoFileName.mpg"
        AxWindowsMediaPlayer1.settings.setMode("loop", True)
That would play your video repeatedly in the media player control.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 5:47 am
by 345138
I mean I just want it to be the video, no controls being seen or anything.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 6:10 am
by GoodGuy17
Right click the media player, click properties, change the control bar or whatever it is called to none, then dock it to the parent container. Then you can expand and it expands, and there is no pause/play/etc.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 6:22 am
by 345138
Thanks, you guys are awesome!
My PS3 XMB will be sexy now.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 6:58 pm
by 345138
The video lags the program a bit.
Any ideas?

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 7:44 pm
by Axel
345138 wrote:
The video lags the program a bit.
Any ideas?
multithreading maybe ?

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 7:47 pm
by 345138
How do I multithread?
Lul.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 7:54 pm
by mandai
Use a BackgroundWorker for multithreading.

The lagg may be due to your system specs.

Re: How To Play an MPG Video In The Background?

Posted: Sun Dec 05, 2010 8:05 pm
by 345138
Okay, thanks.
Mind taking a look at my other problem?