Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner


Reply
 
Share Thread Tools Display Modes
Old 02-12-2009, 04:51 PM   #1
Newbie
 
Join Date: Nov 2007
Posts: 54
fischb22 is an unknown quantity at this point
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
fischb22 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-12-2009, 08:38 PM   #2
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Posts: 1,251
SFiorito is on a distinguished road
Since you're using VS 2008 and running on Vista, you could just use the WPF media playing controls.
__________________
EWF, HORM, MinLogon, and other XP Embedded features on XP.

CarPC:
Zotac ION Atom N330, 2GB low-profile RAM, M3-ATX
OCZ Vertex Turbo 30GB SSD
Lilliput 629 Transflective, WRX Screen Mount
BU-353 GPS, DirectedHD Radio, Andrea Mic
VoomPC 2
SFiorito is offline   Reply With Quote
Old 02-12-2009, 08:43 PM   #3
Newbie
 
Join Date: Nov 2007
Posts: 54
fischb22 is an unknown quantity at this point
Quote: Originally Posted by SFiorito View Post
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
fischb22 is offline   Reply With Quote
Old 02-12-2009, 09:04 PM   #4
Newbie
 
Join Date: Nov 2007
Posts: 54
fischb22 is an unknown quantity at this point
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
fischb22 is offline   Reply With Quote
Old 02-16-2009, 09:51 AM   #5
Variable Bitrate
 
Join Date: Aug 2006
Posts: 257
swift_gti is an unknown quantity at this point
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.
swift_gti is offline   Reply With Quote
Old 10-19-2009, 05:00 PM   #6
Newbie
 
Join Date: Feb 2006
Location: Dallas
Posts: 40
walttoinfiniti is on a distinguished road
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
walttoinfiniti is offline   Reply With Quote
Old 11-07-2009, 06:36 PM   #7
Mod - Driveline forum
 
ClockWorK's Avatar
 
Join Date: Oct 2003
Location: Michigan
Posts: 82
ClockWorK is on a distinguished road
Quote: Originally Posted by walttoinfiniti View Post
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)

ClockWorK is offline   Reply With Quote
Old 11-11-2009, 09:24 PM   #8
Newbie
 
Join Date: Feb 2006
Location: Dallas
Posts: 40
walttoinfiniti is on a distinguished road
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
walttoinfiniti is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which front ends use windows media player 3onDubs Newbie 3 03-14-2006 12:52 PM
4:3 aspect ratio with windows media player Mikesz Software & Software Development 4 02-24-2006 04:10 AM
windows media player full screen visualisations vectra-jon WinNT Based 2 10-13-2005 06:10 AM
Windows Media Player bookmarking of files... mgithens AutoTouch 0 01-25-2005 08:20 PM



All times are GMT -5. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics