|
 |
02-12-2009, 04:51 PM
|
#1
|
|
Newbie
Join Date: Nov 2007
Posts: 54
|
visual basic(studio) 2008 & windows media player
i've been searching now for a while, and not able to find a solution
i want to control windows media player from VB with out having an instance of it attached to a form, is this possible?
Visual Studio 2008, Windows Media Player 11, Windows Vista
__________________
1997 Chevy Tahoe
Planning 30%
Installation 15%
Overall Progress 12%
worklog
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
02-12-2009, 08:38 PM
|
#2
|
|
FLAC
Join Date: May 2004
Posts: 1,251
|
Since you're using VS 2008 and running on Vista, you could just use the WPF media playing controls.
|
|
|
02-12-2009, 08:43 PM
|
#3
|
|
Newbie
Join Date: Nov 2007
Posts: 54
|
Quote: Originally Posted by SFiorito 
Since you're using VS 2008 and running on Vista, you could just use the WPF media playing controls.
i'm not familiar with WPF, but i will be googling shorty, thank you
__________________
1997 Chevy Tahoe
Planning 30%
Installation 15%
Overall Progress 12%
worklog
|
|
|
02-12-2009, 09:04 PM
|
#4
|
|
Newbie
Join Date: Nov 2007
Posts: 54
|
WPF is not the way to go for this project, i've already written most of this, and i'm not going to re-do it, just to gain control over an instance of WMP.
i need a way to nativity do it via VB code, not by adding all that extra mess to get WPF to work.
__________________
1997 Chevy Tahoe
Planning 30%
Installation 15%
Overall Progress 12%
worklog
|
|
|
02-16-2009, 09:51 AM
|
#5
|
|
Variable Bitrate
Join Date: Aug 2006
Posts: 257
|
You will probably want to take a look at the WMP sdk from here; http://msdn.microsoft.com/en-us/wind...a/default.aspx
I believe there is a sample app that covers remoting to an existing instance of WMP.
|
|
|
10-19-2009, 05:00 PM
|
#6
|
|
Newbie
Join Date: Feb 2006
Location: Dallas
Posts: 40
|
fischb22,
I have Widows media player working fine in my application and it does a good job of playing MP3 and video files. But what I woud like is to play DVD's and I have not been able to get any real info on this. On my laptop, when I double click on a drive with a DVD in it, media player will start and I get menus and everything, just like it was a standalone player or PowerDVD. So what I want to do in the car is have a single button that I press and if there is a DVD in the drive, it will start and present the stadard DVD menu. Have you had any experience with the DVD portion of media player?
BTW the laptop I use to develop the app is Vista, but the target is XP for now, but will be Windows 7 later. So far all that I have done so far on the Vista laptop works on the XP box
Thanks
Walttoinfiniti
|
|
|
11-07-2009, 06:36 PM
|
#7
|
|
Mod - Driveline forum
Join Date: Oct 2003
Location: Michigan
Posts: 82
|
Quote: Originally Posted by walttoinfiniti 
fischb22,
But what I woud like is to play DVD's and I have not been able to get any real info on this. On my laptop, when I double click on a drive with a DVD in it, media player will start and I get menus and everything, just like it was a standalone player or PowerDVD. So what I want to do in the car is have a single button that I press and if there is a DVD in the drive, it will start and present the stadard DVD menu. Have you had any experience with the DVD portion of media player?
Play DVD in drive:
Code:
Dim wmpDVD As String
wmpDVD = "wmpdvd://" & Left(inpFolderName, 1)
Dim tempIWMPMedia As WMPLib.IWMPMedia
tempIWMPMedia = wmpControl.newMedia(wmpDVD)
wmpControl.currentPlaylist.appendItem(tempIWMPMedia)
|
|
|
11-11-2009, 09:24 PM
|
#8
|
|
Newbie
Join Date: Feb 2006
Location: Dallas
Posts: 40
|
Clockwork,
Thanks for this code snippit. I will try it when I get back from my trip. I've been trying to play DVD's for the longest.
Walt
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:03 AM.
| |