VS 2010 Getting Current Windows Media Player Song?

Feb 2, 2011

I was wondering if it was possible to use Visual Basic .NET and perhaps the WMP Interop DLL to get the active song from Windows Media Player, and maybe the playlist that's currently on it? I did a quick Google search and found a bunch of jargon that wasn't related (such as making my own MP3 player using WMP Interop

View 5 Replies


ADVERTISEMENT

Get Windows Media Player Current Playing Song?

Apr 13, 2011

VB.NET Visual Studios 2010 or 2008 only!I have searched like crazy and can't find how to get the wmp current playing song Title, Artist and Album names.

I would like to later bring this to Post to Facebook and Twitter ONLY when that button is clicked.

I have already tried things like this: (From the internet)

Dim zArtist As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Artist")
Dim zTrackTitle As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Title")
Dim zAlbum As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Album")

View 9 Replies

Getting Current Song Data From Windows Media Player 12?

Dec 15, 2011

I'm looking to make a VB.net app that gets and displays the artist and title of a song,file size,file path playing in Windows Media Player. I'm not looking to embed the player in my app, just pull data from the already existing window.I've tried sooooo much other code, but this is currently what I have. I'm at my wits end.Imports WMPLib

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code].....

View 3 Replies

Make The Windows Media Player Element In VB Play The Next Song After The Current One Is Done?

Dec 21, 2009

How would I make the Windows Media Player element in visual basic play the next song after the current one is done. I know you can do it with a playlist but how would I do it with out any kind of list boxes or stuff like that. To browse for the files i use a open file dialog.

View 9 Replies

Windows Media Player Song Speed?

Aug 16, 2009

im making my own Media player on WMP base.heres the whole code:

Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form

[code]....

This is MULTILANGUAL program, there are 3 types of 1 command, so just skip foreign languages.Btw, i prefer using TrackBar as Slow-medium-fast speed?

View 5 Replies

Display Windows Media Player Song/video Name In A Label?

Dec 20, 2009

Display Windows Media Player song/video name in a label?

View 1 Replies

Make VB 2010 Media Player Using Picturebox Not Windows Media Player?

Jun 9, 2011

make media player in vb6 or vb2010.. not using windows media player..

View 1 Replies

Media Player Play Next Song

Aug 6, 2011

Im working on a media player for my work. It is suppose to be a song randomizer. I do have this mostly working. My issue is getting it to correctly switch songs when one ends. I just dont know why it is half working and half not. So my issue, after much debugging, which i have kept in my code i will post, i have found that when the song changes, the song does change, the index in the listbox goes up one and the 2nd song starts playing. I should note that i do have the code for playing the next song.

View 1 Replies

Track Song In Media Player?

Jul 31, 2009

How can i track songs position via track bar, like the one in media player control?

vvv Timer Code vvv
TrackBar1.TickFrequency = Player1.Ctlcontrols.currentItem.duration
TrackBar1.Value = Player1.Ctlcontrols.currentPosition

View 14 Replies

Catch When Media Player Song Ended?

Jun 4, 2011

I have made a program that loads all the songs on my computer into a listview and plays them at random (at least that is what I want) right now I have them moveing to another list and removeing them from the current list so that none are played twice but I can't figure out where to put the code to make it wait until one song stops before starting the next song. is there a media completed function or something that I'm missing?

View 1 Replies

Cannot Make The Media Player Play The Next Song In A List Box

May 18, 2010

Im making a media player and have a listbox and a player so I need to make the media player play the next song in the list box btw I have a list of strings named fullfilepaths because the listbox displays name and duration

heres the code:

Private Sub AxWindowsMediaPlayer1_PlayStateChange(ByVal sender
As Object,
ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent)

[code]....

View 5 Replies

Check If Media Player In Vb Form Has Ended The Song?

Aug 27, 2011

How can I check if media player in my vb form has ended the song?

View 4 Replies

Media Player - File Path With No Song Name And Length

May 7, 2010

I made a media player that has a list box and u click on a song and it plays. But the problem is it says the file path not the song's name and length.

View 11 Replies

Using Windows Media Player In VB 2010?

Jan 15, 2011

I had an old vb2008 program that had a working wmplayer component. I upgraded the project to vb 2010 and now it doesnt work, i get the error:

Code:
System.InvalidOperationException was unhandled

Message=An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. I added the wmp.dll in the COM components in the toolbox.

I cant get it to work.

I have 64bit windows, but the app im developing needs to work of 32bit (and 64 bit if possible). also windows 7.

I added a new form and tried to drag the windows media player component onto the form and it showed an error and would not add it to the form it said.

Failed to create component 'AxHost'....unable to load one or more of the requested types.

The weird thing is if i open a new project ad=nd add the wmp control to the form it works and debuig runs fine too!

View 6 Replies

VS 2010 Windows Media Player?

Jul 18, 2010

I inserted wmp active x some buttons for my online streaming links and i created a button for fullscreen.

To enter in fullscreen while the stream is running i used this code Me.AxWindowsMediaPlayer1.fullScreen = True But when i click the button while the player is connecting to stream i get an error like this:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

[Code]...

View 2 Replies

VS 2010 : Play A WMV File Without Using A Windows Media Player Control?

Nov 12, 2011

I want to play a WMV file without using a Windows Media Player Control.

View 39 Replies

VS 2010 Open Multiple MP3 Files In Windows Media Player?

Jul 18, 2010

I'm creating a kind of 'playlist manager' application where the user can create his own music playlist and then play it from my application. However, I don't want to give my application any playback features itself, as there are already so many media players around. Instead, I just want to open the files in the current playlist in the media player of the user's choice.

I have a list of MP3 files (their filenames), how do I now open these files simultaneously in, for example, Windows Media Player? I can get it to play one song, using this command (and Process.Start)

[Code]...

Surely this must be possible? You can open multiple files in windows itself simply by selecting them and opening them at the same time. I'm pretty sure the filenames of the selected files will then be in the arguments of wmplayer so that it can open them, but I just don't know in what format.

View 20 Replies

Take A Screen Shot Of Only The Windows Media Player Control Vb 2005 - 2010?

Nov 18, 2011

I have looked all over the internet to find specifically what the title says and i cant find anything that will work and is what i want, it's mostly all vb6. so even more specifically i am creating a program that captures screenshots of the "axwindowsmediaplayer" control at what ever frame or part of the video it's on. i also noticed that there is a command in the little menu when you type in "axwindowsmediaplayer.capture" i don't know how to use it?

View 2 Replies

Windows Media Player Not Working On Windows XP Using Visual Studio Application?

Aug 8, 2011

I have embedded the WMP control in my Visual Studio 2010 app which works on windows 7 (Framework 4.0), but installing the app on winXP, I get the following error:

System.IO.FileNotFoundException: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

[code]....

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].

I guess this is a reference issue, but I have added references to WMP libraries (axinterop.wmplib.dll and interop.wmplib.dll). The WMP works on the XP machine, but not when called from my application.I have searched the web now for 5 days and changed references, and reinstalled the media player on the XP machine, but nothing works.

View 1 Replies

Winforms - How To Load Binary To Windows Media Player In Windows Forms

Jul 24, 2011

I've successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).

View 1 Replies

VS 2008 Play The Next Song From My Listbox When The Current Song Is Finished?

Jun 10, 2009

I want to play the next song from my listbox when the current song is finished. This is what I've tried:

If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
ListBox1.SelectedIndex += 1
AxWindowsMediaPlayer1.URL = ListBox1.SelectedItem
AxWindowsMediaPlayer1.Ctlcontrols.play()
End If

It changes the index of the listbox, but it doesn't play the new file. The file exist and there's no problem playing it the normal way.

View 1 Replies

Using Windows Media Player 11 With .net?

Sep 24, 2009

used the latest WMP (v11) with .NET? I've been writing a VB6 program using the v9-10 dll, and now I find out the machines I need to use it on are v11 (which doesn't appear to play nicely w/vb6).

View 1 Replies

VS 2010 Make A Music Player That Will Play A Song In The .exe Format

Oct 1, 2010

What i want to do is make a music player that will play a song in the .exe format, so an app will open and automatically play a song. This is to prevent ripping and copyright issues. I made a app using the WMP Com Component but that of course requires the file to be opened.

View 2 Replies

.Net Video With Windows Media Player?

Jun 2, 2011

I'm having trouble working with VB.Net 2010, I'm trying to have a Windows Media Player video play, and once it ends I want it to go to a new task. But I cannot figure out how to get it to get to that new task in the event that the video ends.

View 1 Replies

Deploying Windows Media Player?

Mar 13, 2006

What is involved in deploying a vb.net 2003 application with the Microsoft Media Player component? What files must be part of the build?

View 7 Replies

Maximizing Windows Media Player?

May 16, 2009

Maximizing windows media player

View 3 Replies

Windows Media Player Component?

Jan 11, 2009

I was wondering how programatically to pause the windows media player component and how to get and set the windows media player current song position.I only know the basics with windows media player component like

axwindowsmediaplayer1.url = "whatever.mp3"
axwindowsmediaplayer1.settings.volume = 50
It said on a forum somewhere

[code].....

View 3 Replies

Windows Media Player Error

Apr 1, 2010

All works fine until i take the .exe file and change directory, desktop etc.[code]...

View 2 Replies

Windows Media Player Errors

Mar 11, 2010

I have a form with the WMPLIB embedded in the form. I cycle through music files ripped with WMP and some of them I get a media error, but it doesn't indicate what the error is. How do I find out what is wrong with the rip? I am using VB.NET. I use: [code] to load the file. Most of the files play fine, but some do not. I have set an error trap sub but how do I tell what is wrong with the file?

View 1 Replies

Windows Media Player Multiple URL's

Jan 23, 2009

I am making a game and i would like to know how to have more than one song loaded into my windows media player object at a time All I know is this code to have one url: axwindowsmediaplayer1.url = "song.mp3"

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved