473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

AxWindowsMediaPlayer1 playing multiple files

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
Dec 20 '07 #1
2 13309
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.m p3")
AxWindowsMediaPlayer1.mediaCollection.add("Second. mp3")

' create the new playlist

AxWindowsMediaPlayer1.playlistCollection.newPlayli st("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)
+++


"BobAchgill" wrote:
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
Dec 21 '07 #2
On Dec 22, 12:50 am, BobAchgill <BobAchg...@discussions.microsoft.com>
wrote:
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.m p3")
AxWindowsMediaPlayer1.mediaCollection.add("Second. mp3")

' create the new playlist

AxWindowsMediaPlayer1.playlistCollection.newPlayli st("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)

+++

"BobAchgill" wrote:
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
You can declare item that'll be appended as:

Dim songs = AxWindowsMediaPlayer1.newMedia("yourmediapath")

AxWindowsMediaPlayer1.currentPlaylist.appendItem(s ongs)

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)
Dec 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of...
1
by: Primo | last post by:
Hello, I am building a data management application with the following processes: Process 1 is a Windows service which uses FileSystemWatcher to monitor a directory. Process 2 opens a file...
1
by: Jignesh Desai | last post by:
Playing Flash Files in ASP.NET Copy the HTML code below and paste it into your HTML<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://downloa...
6
by: Steven | last post by:
I have a problem with moving the backup of my database from machine to machine. The size is 17 Gig and my network keeps timing out when I try to ftp it from machine to machine. I have had the...
10
by: kimiraikkonen | last post by:
Hi, I have an app which has a listbox and when i double click an associated fileS, i want their paths to be added into listbox in my application. This code works good when i try to open a...
1
by: nkothari | last post by:
Can someone help me with playing video files through java.
43
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail...
4
by: MoroccoIT | last post by:
Greetings - I saw somewhat similar code (pls see link below) that does mupltiple files upload. It works fine, but I wanted to populate the database with the same files that are uploaded to...
0
by: metalheadstorm | last post by:
I have a tcp client - server implementation running in the same program, on different background worker threads. There will be instances of this program on multiple computers so they can send and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.