AxWindowsMediaPlayer1 playing multiple files

  • Thread starter Thread starter BobAchgill
  • Start date Start date
B

BobAchgill

How can I best play several mp3 files one immediately after the other?

Will this tie up the AxWindowsMediaPlayer1 instance such that I can't use
the instance again until the files finish playing or can I break out of this
"playlist" early?

Thanks!

Bob
 
I now am trying to use the Media player internal playlist feature but I am
getting stuck on what to put where I have the ??? in the code below. Can you
shed some light on what I need to do here?

+++
' add the two mp3's to media collection
AxWindowsMediaPlayer1.mediaCollection.add("First.mp3")
AxWindowsMediaPlayer1.mediaCollection.add("Second.mp3")

' create the new playlist

AxWindowsMediaPlayer1.playlistCollection.newPlaylist("MyProgramMadePlaylist")

' add the two mp3's to the new playlist
AxWindowsMediaPlayer1.currentPlaylist.appendItem(???)
AxWindowsMediaPlayer1.currentPlaylist.appendItem(???)

' will by default autoplay this playlist
AxWindowsMediaPlayer1.currentPlaylist =
AxWindowsMediaPlayer1.playlistCollection.getByName("MyProgramMadePlaylist").Item(0)


+++
 
I now am trying to use the Media player internal playlist feature but I am
getting stuck on what to put where I have the ??? in the code below. Can you
shed some light on what I need to do here?

+++
' add the two mp3's to media collection
AxWindowsMediaPlayer1.mediaCollection.add("First.mp3")
AxWindowsMediaPlayer1.mediaCollection.add("Second.mp3")

' create the new playlist

AxWindowsMediaPlayer1.playlistCollection.newPlaylist("MyProgramMadePlaylist")

' add the two mp3's to the new playlist
AxWindowsMediaPlayer1.currentPlaylist.appendItem(???)
AxWindowsMediaPlayer1.currentPlaylist.appendItem(???)

' will by default autoplay this playlist
AxWindowsMediaPlayer1.currentPlaylist =
AxWindowsMediaPlayer1.playlistCollection.getByName("MyProgramMadePlaylist").Item(0)

+++

You can declare item that'll be appended as:

Dim songs = AxWindowsMediaPlayer1.newMedia("yourmediapath")

AxWindowsMediaPlayer1.currentPlaylist.appendItem(songs)

I have a question related to this: I also wonder and maybe you can get
stuck on how to continue playing playlist files after a single song is
played when you double click on a on that song.(eg. an mp3 item which
is located in a listbox)
 
Back
Top