Playlist Is A Listbox?

Sep 23, 2010

been off working on a media player for a bit of time now.what I am up against is for sure giving me heck I have 2 listoxes for my wmp media player that I am using as a playlist.Listbox1 is invisible to the user, and is only there to hold the file paths of songs in the listbox.Listbox 2 is showing only the name of the songs ..not the paths.

now everything is going along as it should be except for when i try to get my player to go from the last song of the list to the beginning song of the list. It will skip the last song...and the first song...(lol) and start playing at the second song of the list *sigh*I have been going round and round with this problem for several days now and am just about ready to shoot the freakin thang can anyone give me a hand here?here is the code I have that is for the "play All" this code is set on a timer

[Code]...

View 14 Replies


ADVERTISEMENT

Import MP3s Into A ListBox And Have That As Playlist?

Jul 25, 2009

I am currently setting up my own media player and so far there is only one thing that is making me very unhappy/frustrated. I have searched google so much and still couldn't find the solution. Here is my problem. I'm trying to import MP3s into a ListBox and have that as my playlist using this code:

For Each Song As String In Import.FileNames
playlist.items.add(Song)
Next

The only problem with this code is that it displays the song's full path in the list box. What I'm trying to do is just bring in the name of the MP3 without showing the path and still have the song play.

[Code]...

View 12 Replies

VS 2008 Create Listbox Playlist?

Mar 11, 2010

I have a form with a Listbox.In the listbox is a list of files in a certain directory with one extension (*.mp3)I'm using this code for that:

Dim folderInfo As New IO.DirectoryInfo("C:Windows")
Dim arrFilesInFolder() As IO.FileInfo
Dim fileInFolder As IO.FileInfo

[code].....

View 4 Replies

How Can Make A 'save Listbox Items As A Playlist

Jul 22, 2010

I am trying to make a 'save listbox items as a playlist' sort of thing, and I can't seem to get my code to work. Here is the exact code:[code...]

View 4 Replies

Music Player - Playlist - Split The Filelocation From The Filename In The Listbox?

Jun 22, 2009

I got some music player from the web, a cool one, and i tried to add him a playlist. i`ve change the entier interface.

I have like this
- play botton
- pause botton
- stop button
- TrackBar for song
- timer for song lenght
- a volume
- a button for PLAYLIST.

This code is for Play:

Private Sub PlaySong()
If (PlayerControl.URL <> "") Then
PlayerControl.Ctlcontrols.play()

[CODE]...

It's actualy a shortcut for the button event. It checks if Url isn't empty, and if it isn't, start playing the song from that url. This is the code of the play button:

Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
PlaySong()
End Sub

Now i`m gonna talk about the Playlist button. When you enter the exe, the playlist is Visible, when you press the button it's hidden and so on.(it's made with if then condition).

The playlist it's actualy a ListBox called lplst and has some buttons:
- Add
- Delete
- Save
- Load
- Clear

I`m gonna talk about the Add button. This button pops up a dialog box to open mp3 files to that FIleBox. And it get's ONLY the FILENAME! (without the URL or Location of it) This is the code for the Add button:

Private Sub ToolStripButton7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton7.Click
Dim openfile As New OpenFileDialog

[CODE]...

Before , the Add button was adding JUST the location (example: C:\blabla.mp3) and when i selected it and click play, it was playing the song. But now i wanted to show only the file name. I got some code on the listbox change too.

Private Sub lplst_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lplst.SelectedIndexChanged
PlayerControl.URL = lplst.SelectedItem
End Sub

This code changes the URL that plays. Depends what is the selecteditem. i browsed all the web , and i couldn't find anything.

Now the problem: I can change the Add button like this:

Private Sub ToolStripButton7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton7.Click
Dim openfile As New OpenFileDialog

[CODE]...

And this will link me like this: Filename - Filelocation.

But now the PlayerControl.URL = lplst.SelectedItem. code won't run the mp3 file from that location. How do i have to split the Filelocation from the Filename in the listbox?

View 10 Replies

Wmp : How To Add Playlist

Mar 20, 2011

how do i play more than one track from wmp vb code

View 1 Replies

Wmp Add Playlist For Vb?

Jan 25, 2011

how do i play more than one track from wmp vb code

View 7 Replies

Using A M3u (playlist) In Player?

Jan 24, 2012

I have the entire bible in audio. Lets start with Matthew. Matthew has 28 seperate mp3 chapters I have converted to wav for my app. They work fine. However, I wish to somehow use the Matthew.m3u (playlist) which "includes" or "points to" the entire 28 chapters. I want to do this so the user does not have to keep clicking to get to the next chapter, ie. chapter 3...click to chapter 4. I want it to just play from chapter 1-28 then stop.

View 4 Replies

Add More Than One Audio Files In A Playlist

Jun 2, 2011

I ve added windows media player in the form. and i can add a audio file in it..but i want to add more than one audio files in a playlist and from tat playlist i want to retreive duration of each n every file and store it seperatly in an array or collection.

View 4 Replies

Choose Song From Playlist?

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

Create A Playlist For Program?

Nov 14, 2009

Im trying to create a playlist for my program (which ive done),ive also got it to rename the items (just to show songname.mp3),my problem is:

when the person Double-Clicks on an item in the listbox it wont play it because it plays the value of the selected item. On how to rename it to only the songname but still be able to play it?

[Code]...

View 3 Replies

Get The Radio Playlist M3u File?

Sep 3, 2011

all is there a way to get the radio playlist throught vb.net and the m3u file.

View 2 Replies

How To Make Playlist In DataGridView

Mar 3, 2011

I used Listbox to make playlist in VB.net. When a song finish, it will next song. Here's my coding.

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If AxWindowsMediaPlayer1.playState = WMPPlayState.wmppsPlaying Then
'Nothing
ElseIf AxWindowsMediaPlayer1.playState = WMPPlayState.wmppsStopped = True Then
PlayList01.SelectedIndex = PlayList01.SelectedIndex + 1
PlayList02.SelectedIndex = PlayList02.SelectedIndex + 1
AxWindowsMediaPlayer1.URL = PlayList01.SelectedItem
End If
End Sub

View 3 Replies

Make A Playlist Maker?

Oct 30, 2009

How would i create something that would open a choose file dialog, let you click all the files you want(in this case audio files), take the ones you selected and write a windows media player playlist file(you should know but anyways its basically a text file formatted in a specific way with a .wpl extension)[code]...

View 4 Replies

Mp3 Player Auto Next Playlist

Jul 6, 2009

im having trouble with some code for a mp3 player program. i want to have a listbox with file paths of mp3's (eg. "c:/users/quatz/music/song1.mp3, c:/users/quatz/music/song2.mp3" ect. in the list) and a windows media player control. i have every thing else "down pat" but i want to find a way to autoplay the next song in the listbox once the first song has stopped playing i am using vb2008 express

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

WMP Playlist Viewing & Playing

Apr 6, 2007

I have an mp3 player that could play mp3s and playlists(premade from windows media player(it only conatins mp3s)). When i launch a playlist i need to keep pressing (next) button to get to the song i want. So, when i launch a playlist(*.wpl) i want it to be shown in a listbox or a treenode... whatever, but in a way that i could play and view the songs i have already put in it.

View 14 Replies

Create Playlist For Shockwave Player?

Apr 11, 2010

i want to play multiple swf files in a single shockwaveflash object instance one after other as a playlist..

so how can i create a playlist for shockwaveobject...in vb.net

View 1 Replies

Get A Playlist To Burn In Media Player?

Jan 23, 2009

trying to get a playlist to burn in media player. I have the playlist going into media player but cant get it to burn using the burnplaylist property and start burn method.

View 1 Replies

How To Make A Playlist Whit A ListView?

Jan 9, 2012

I'm creating a program which has AxWindowsMediaPlayer, and it works and all that but i want to change the playlist. I know how to make a playlist whit ListBox, but does enyone know how to make a playlist whit a ListView??

View 5 Replies

Media Playlist Into Text File

Feb 25, 2011

I am making a media player playlist. This is the code I am using to show the 10 text boxes that will contain the file location of the 10 songs in the playlist in a text file. I want to view them in a list so:
C;/kernhrnhirnh
C;/rkhnr
c;/etc
not just in one row , how do I do a backspace in txt_MediaItem1.Text & txt_MediaItem2.Text & txt_MediaItem3.Text part
'SET FILENAME AS STRING, which is the file location
[Code] .....

How would I then open this text file and put all the rows back in to the text boxes? So I could make a save palylist and open playlist function.

View 3 Replies

Playlist - Go To Next Song And Repeat After Last Item

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

VS 2008 : Making A Video Playlist?

Nov 3, 2009

I plan on making a Visual Basic Project that involves playing a series of videos. I wanted to have six videos in my project. The videos would be selected through checkboxes. Once the videos are selected, I wanted them to play automatically one after the other from one video player either in the same form or in another form.Is this possible to do? If so, how would the coding work? I am using Visual Basic 2008 Express Edition.

View 2 Replies

VS 2008 Playlist Not Working Anymore?

Mar 18, 2010

When i click a song in Playlist1, when it's finished it goes to the next one.But when i click a song in Playlist2, and when that one is finished, it goes to the next song in Playlist1. I don't know whats wrong in my code, i've been looking through it finding the mistake, but i just can't find it. I actually need it in 2 days so if anyone could help me it would be great.

View 11 Replies

AxWindowsMediaPlayer Auto Play Next Song From Playlist

Feb 27, 2011

AxWindowsMediaPlayer auto play next song from playlist

View 1 Replies

Load Files From A Playlist To Play In The Player?

Oct 10, 2009

I have a media player in which I would like to load files from a playlist to play in the player.

Dim song As String
Dim i As Integer
Dim ItemCount As String

[Code]....

I have managed to get the songs from the playlist into the listbox but using the for loop above it it only play the first song in the list.

Is there some code I can use in the for loop to tell it to wait until the song is finished playing before is processes the next iteration.

View 1 Replies

Make A Playlist With The Names Of All The Songs In Library?

Jan 19, 2012

I am somewhat new to VB and I am currently working on a media player program. I used WMP to make a playlist with the names of all the songs in my library. Then I have my VB program open the library playlist and read all the music names into an array. This works perfectly until i get to a song title with a

(which is not the same as the ' on the keyboard) but readline reads them in as a black diamond with a ? in it. Is this an ASCII/ UNICODE problem, or something like that? How do I fix this? I checked the text file and it is correct.

View 5 Replies

Rename Playlist List In Media Player?

Mar 10, 2011

lisbox1 = playlist.m3u
listbox2 = playlist list
how to rename my playlist list? example.
playlist.m3u ------item.mp3
item2.mp3

how to rename item.mp3 and saved it automatically when i click enter.

View 4 Replies

Show The Playlist In Windows Media Player?

May 28, 2007

i used Windows Media control to play sound files as .mp3, .wma...and create a playlist.i want to show the playlist in windows media player!how can i do that?

View 3 Replies

Stop Pause / Gap Between Tracks In Windows Media Playlist?

Aug 16, 2009

Is it possible to prevent the pause or gap when playing audio from a windows media playlist in VS 2008?

Or is there another method of playing .wav or .mp3 files without pauses or gaps inbetween each other?

View 4 Replies







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