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


ADVERTISEMENT

Click The The Song To Play, Even The Play Song Finish But Does't Play Automatically?

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

Auto-play Mp3 Song After Each Song Finishes?

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

Song In List Box And First Song Ended It Would Play Next

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

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

AxWindowsMediaPlayer1 Play Automaticaly The Next Song In Listbox?

Aug 3, 2010

I had make a web radio player application but i want also my application to work like .mp3 player so i make

a new form (the code is below) my listbox work fine also the AxWindowsMediaPlayer1. But i don't know how i can set the AxWindowsMediaPlayer1 to play the next track in listbox.

[Code]...

View 9 Replies

VS 2008 Current Song Going Through Speaker?

May 25, 2009

is it possible to retrieve the current song (mp3) that is being played through your computer's speakers? No matter which program is playing the song.. This has to be possible since when a program plays an mp3 some code has to be passed through Windows telling it to play the song SongABC.mp3 using the computer's default speakers...

View 9 Replies

Load Song File To Song Database We Have Already Set

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

How To Play A Song

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

VS 2008 Playing Next Song In Listbox?

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

Play A Song File?

Sep 26, 2010

What can I do to write a code to play a song file?

View 5 Replies

WMP Selected Song Play

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

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

VS 2010 - Play Next Song Automatically?

Apr 18, 2011

Q1: how to play next song automatically? Q2: I dont want to fullname of Song like : d:mp3asshunter - dota125.mp3 (Only Basshunter - dota125 or Basshunter - dota125.mp3)but i need fullname of file to play song cuz my play button code Player.URL = ListBox1.SelectedItem

Q3: About my trackposition bar (name:trackbar2) song moves (back or forward) when i moved trackbar2 scroll (it's ok no problem)but trackbar2 scroll doesn't automatically move.

[code]...

View 5 Replies

Autoplay Mp3 Song After Each Song Finishes?

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

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

AxWindowsMediaPlayer Auto Play Next Song From Playlist

Feb 27, 2011

AxWindowsMediaPlayer auto play next song from playlist

View 1 Replies

Write The Simplest Program That Will Play A Song For 1 Second?

Aug 21, 2011

I have no programming experience at all, although did learn basic at school 30 years ago how it's changed Anyway I am trying to write the simplest program that will play a song for 1 second.The reason is that me and my friends are Jam fans and we want a contest to see who can name the song with just a second of it playing (at any part in the song).

I have managed to to get the song to load and play but I only want it to play for 1 second before it stops.I can do the rest of the coding from there but I just can't get it to play for 1 second. I have a form with a button to start it off and this is all i have so far

[Code]...

View 3 Replies

Audio Playback - Make The Shuffle Never Play The Same Song Twice

Mar 21, 2011

Basically my program has a "shuffle" music feature:

vb For i = 0 To 26 num = randomObject.Next(0, 27) My.Computer.Audio.Play("C:UsersMcturtlesMusicSongs" & num & ".wav", AudioPlayMode.BackgroundLoop) Next

Which selects a random number 0 - 26 and selects the corresponding song.

And a straight play feature:

vb Dim counter As Integer Do Until counter > 26 My.Computer.Audio.Play("C:usersmcturtlesmusicsongs" & counter & ".wav", AudioPlayMode.WaitToComplete) counter += 1 Loop

All of these activated by a button(separate for each)

When I click one, it makes the program stop responding. I'm pretty sure it is the .WaitToComplete mode, but I can't find a way to make it continuously play without it. If you can find my error. Also if you could tell me a way to make the shuffle never play the same song twice, that would be awesome as well.

View 2 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

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

Get Shoutcast Information (Current Song)?

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

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

ITunes Library Control - Current Song Playing?

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

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

VS 2008 Playlist Next Song?

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

VS 2008 Set Title Of Song

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

VS 2008 Using A Trackbar - Drag / Slide The Movie / Song

Feb 28, 2010

I am using a picturebox to play movies/songs in my application. I want to able to drag/ slide the movie/song as we can do it in windows media player.

View 1 Replies

How To Get To A Mp3 Song Length

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







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