Results 1 to 8 of 8

Thread: visual basic(studio) 2008 & windows media player

  1. #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

  2. #2
    FLAC SFiorito's Avatar
    Join Date
    May 2004
    Posts
    1,365
    Since you're using VS 2008 and running on Vista, you could just use the WPF media playing controls.
    EWF, HORM, MinLogon on XP.

    Zotac ION Atom N330, 2GB low-profile RAM, M3-ATX
    Win Embedded Std 2011 RC
    OCZ Vertex Turbo 30GB SSD
    Lilliput 629 Transflective, WRX Screen Mount
    BlueSoleil BT, i-Blue GM-2 GPS, DirectedHD Radio, Andrea Mic
    VoomPC 2

  3. #3
    Newbie
    Join Date
    Nov 2007
    Posts
    54
    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

  4. #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

  5. #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.

  6. #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

  7. #7
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    701
    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)

  8. #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

Similar Threads

  1. Which front ends use windows media player
    By 3onDubs in forum Newbie
    Replies: 3
    Last Post: 03-14-2006, 11:52 AM
  2. 4:3 aspect ratio with windows media player
    By Mikesz in forum Software & Software Development
    Replies: 4
    Last Post: 02-24-2006, 03:10 AM
  3. windows media player full screen visualisations
    By vectra-jon in forum WinNT Based
    Replies: 2
    Last Post: 10-13-2005, 05:10 AM
  4. Windows Media Player bookmarking of files...
    By mgithens in forum AutoTouch
    Replies: 0
    Last Post: 01-25-2005, 07:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •