How To Play an MPG Video In The Background?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
10 posts Page 1 of 1
Contributors
User avatar
345138
New Member
New Member
Posts: 20
Joined: Fri Dec 03, 2010 3:45 am

Really, the question IS the title.
Last edited by 345138 on Sun Dec 05, 2010 8:40 pm, edited 1 time in total.
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

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.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
345138
New Member
New Member
Posts: 20
Joined: Fri Dec 03, 2010 3:45 am

I mean I just want it to be the video, no controls being seen or anything.
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

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.
User avatar
345138
New Member
New Member
Posts: 20
Joined: Fri Dec 03, 2010 3:45 am

Thanks, you guys are awesome!
My PS3 XMB will be sexy now.
User avatar
345138
New Member
New Member
Posts: 20
Joined: Fri Dec 03, 2010 3:45 am

The video lags the program a bit.
Any ideas?
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

345138 wrote:
The video lags the program a bit.
Any ideas?
multithreading maybe ?
http://vagex.com/?ref=25000
User avatar
345138
New Member
New Member
Posts: 20
Joined: Fri Dec 03, 2010 3:45 am

How do I multithread?
Lul.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Use a BackgroundWorker for multithreading.

The lagg may be due to your system specs.
User avatar
345138
New Member
New Member
Posts: 20
Joined: Fri Dec 03, 2010 3:45 am

Okay, thanks.
Mind taking a look at my other problem?
10 posts Page 1 of 1
Return to “Coding Help & Support”