Get Song Number Of Currently Playing Song?
Oct 13, 2009
i have 2 listboxes beside eachother and one listbox shows all the songs in the wmp control playlist, the other listbox always has the same topindex, im trying to show in that listbox with a pointer ('>') which song is currently playing in the media control but i need to know what the song number is in order to do that. there has to be some order, right? that increases when you go to the next song and decreases when u go to the previous?so far i have:
Private Sub wmp1_CurrentItemChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_CurrentItemChangeEvent) Handles wmp1.CurrentItemChange
Form2.ListBox2.Items.Clear()
[code].....
View 5 Replies
ADVERTISEMENT
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
Mar 6, 2011
I have got a Textbox - textbox1
and an axwindowsmediaplayer - mediaplayer1
this is the code I am using to make the mediaplayer play all the listed songs in the listbox[code].....
I want the song name that is playing to be displayed in the textbox.this is a code i tried to do but I failed:[code]......
View 2 Replies
Mar 9, 2006
When using a process.start command to start a media player and play a song at a file location, is there a way programmatically to tell when the song or media has completed playing?
View 5 Replies
Sep 13, 2009
I have a listbox with a few songs in which i can click individually and play using the axwindowsmediaplayer1 control.But i would like it so that when one song finishes it moves down the listbox and plays the next song..i undertsand how to move down the listbox and play the next song however not sure how to detect if the song has finished?
View 3 Replies
Jun 23, 2009
I am creating a mp3 player through VB.Net I have kept a Listbox that shows the play list. I have created the player such that it when ever the user cicks on the selection on listbox the player play the corresponding song. so the user has to click on the next song to play the next song once the previous song is finished.Now I would like to know is it possible for the player to automatically play the next song once the previous song is finished? If so how do I go about doing this on VB.Net?
View 8 Replies
Feb 22, 2012
Base on the related to the last thread please you clarify of how to load song fles to database that we have been set ?
View 12 Replies
May 12, 2010
I made a media player and wanted to make it so if there is more than one Song in the list box and the first song ended it would play the next and so on..[code]
View 8 Replies
Feb 16, 2009
I made a game, i wanna know how can i add a song in the background, while the person is playing game, or if its possible, on every level, it plays defferent song.
View 1 Replies
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
May 10, 2010
I'm using the iTunes library control to figure out the current song playing in my iTunes, but theres 1 annoying thing... everytime I load my program it now automatically starts iTunes. Is there a way to use the control and not have it launch iTunes with my program? Or a better way of getting the current iTunes song without using the iTunes control?
View 3 Replies
Jun 23, 2009
I am creating a mp3 player through VB.Net I have kept a Listbox that shows the play list. I have created the player such that it when ever the user cicks on the selection on listbox the player play the corresponding song. so the user has to click on the next song to play the next song once the previous song is finished.
Now I would like to know is it possible for the player to automatically play the next song once the previous song is finished? If so how do I go about doing this on VB.Net
View 2 Replies
Mar 2, 2011
i have a function to check if a number is in an array. and if its not in an array the function returns false.if it returns false i want to insert the number into the next slot of array3. here is the code i have so far.
[Code]...
View 1 Replies
May 8, 2010
I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.
If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then
[code].....
View 4 Replies
Nov 24, 2010
I need to write the song length to an access database.I have worked out how to get to an mp3 song length. However, I also need to be able to get to the songlength for the following file extension :.kar, .mid, .kfn.
View 3 Replies
Jun 27, 2010
want to play a song when i click a button.... it s possible means, pls give an overview or give link to video tutorial
View 1 Replies
May 13, 2012
I'm creating an app that loads a specified list of song paths into an array then loads the array contents into a new playlist for the Windows Media Player component (wmpPlayer).
Included on my form is a listbox which displays each of the song titles.
Dim PlayList As WMPLib.IWMPPlaylist
Dim Media As WMPLib.IWMPMedia
Private Structure Track
[Code]....
When I do this the song will play but wmpPlayer loses its playlist so when the song finishes it does not continue through the playlist.
View 2 Replies
Apr 11, 2011
I want to get the pitch of a song at any point. I plan on storing the pitches later. How can I read say... an mp3 file or wav file to get the pitch played at a certain point?
Here is a visual example:
Say I wanted to get the pitch that is here at ^this point of the song.
View 1 Replies
May 5, 2010
I have some songs in the resources of my application and want to get their time length so that I can set a timer to tick when the song ends. And then start the next song. I want to do that in my code, and get the time length of a song as an integer value.
View 6 Replies
Sep 26, 2010
What can I do to write a code to play a song file?
View 5 Replies
Mar 23, 2010
I am searching for a code that can read the asx file from an internet radio and come with an output of the song name
//edit: btw it would be nice if it was an label that got the song name and it was refresing every 10 sek
View 7 Replies
Aug 23, 2009
I have a littel problem, i types a music program and i don't know how to change to new song in playlist (listbox) so the problem is how to make a next song.
I have seached in this forums but i can't find something like that If you have a link so it i will be happy or if you can help me here.
View 20 Replies
Aug 28, 2009
I have a problem to my music player..I want it to set a title of song if the title of song is unknown like:Opening a new form and it will ask for, Will you set title? And if the user pressing ok then the song title will be it.[code]
View 3 Replies
Mar 5, 2011
I'm working on a music player. I select an item (song) in my listbox and press the play button, it plays. Then I click onto another item and press play but instead of playing that song, it plays the first song. The next song (and last) song buttons work (they also work in this situation and still change the song to the next in the list after the first song).So basically, I press play on on item/song and it plays then when I press the play button for the second time on a different item/song, the first song plays and it keeps on doing that on every song I select and play.[code]
View 9 Replies
Apr 27, 2012
Im fooling around with the Windows Media Player control in Visual Studio 11 (Beta) and I'm wondering how to
1. How to get the path to a folder, and then add all the paths of the files in that folder into an ArrayList
2. How can I get the length of the current .mp3 file that's playing in the Windows Media Player control?
View 5 Replies
Jan 16, 2012
I am using bass.dll for streaming online radio. I need to find out how to retrieve the current song playing.
View 2 Replies
Oct 22, 2010
I am trying to get song titles from a pages source. There is no specific tag for these song titles, They are all nested like below
<h3><a href="/monosurround/all-night-long-monosurrounds-enfant-terrible-mix">All Night Long (Monosurround's "Enfant Terrible" Mix)</a></h3>
Now there are other <h3> tags so i need to do 2 loops so far.
First loop
<h3><a href="/monosurround/all-night-long-monosurrounds-enfant-terrible-mix">All Night Long (Monosurround's "Enfant Terrible" Mix)</a></h3>
<h3><a href="/monosurround/monosurround-we">We</a></h3>
[code]....
View 3 Replies
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
Aug 19, 2009
If I have songs in listbox. Thats All Play One by One. Repeat When Finish Play List. I am Using This Code For Repeat One Song:
If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsStopped Then
AxWindowsMediaPlayer1.Ctlcontrols.play()
End If
View 11 Replies
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