473,797 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxWindowsMediaP layer1 playing multiple files

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

Will this tie up the AxWindowsMediaP layer1 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 13364
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
AxWindowsMediaP layer1.mediaCol lection.add("Fi rst.mp3")
AxWindowsMediaP layer1.mediaCol lection.add("Se cond.mp3")

' create the new playlist

AxWindowsMediaP layer1.playlist Collection.newP laylist("MyProg ramMadePlaylist ")

' add the two mp3's to the new playlist
AxWindowsMediaP layer1.currentP laylist.appendI tem(???)
AxWindowsMediaP layer1.currentP laylist.appendI tem(???)

' will by default autoplay this playlist
AxWindowsMediaP layer1.currentP laylist =
AxWindowsMediaP layer1.playlist Collection.getB yName("MyProgra mMadePlaylist") .Item(0)
+++


"BobAchgill " wrote:
How can I best play several mp3 files one immediately after the other?

Will this tie up the AxWindowsMediaP layer1 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...@dis cussions.micros oft.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
AxWindowsMediaP layer1.mediaCol lection.add("Fi rst.mp3")
AxWindowsMediaP layer1.mediaCol lection.add("Se cond.mp3")

' create the new playlist

AxWindowsMediaP layer1.playlist Collection.newP laylist("MyProg ramMadePlaylist ")

' add the two mp3's to the new playlist
AxWindowsMediaP layer1.currentP laylist.appendI tem(???)
AxWindowsMediaP layer1.currentP laylist.appendI tem(???)

' will by default autoplay this playlist
AxWindowsMediaP layer1.currentP laylist =
AxWindowsMediaP layer1.playlist Collection.getB yName("MyProgra mMadePlaylist") .Item(0)

+++

"BobAchgill " wrote:
How can I best play several mp3 files one immediately after the other?
Will this tie up the AxWindowsMediaP layer1 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 = AxWindowsMediaP layer1.newMedia ("yourmediapath ")

AxWindowsMediaP layer1.currentP laylist.appendI tem(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)
Dec 25 '07 #3

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

Similar topics

6
10573
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 course, we can use <input type=file ...> multiple times and then submit once. But this is not what I want, because we have to click "browse" button several times to select multiple files before submit in this way.) "Upload multiple files PER TIME", I...
1
7225
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 copied into the directory and inserts the data into a data warehouse. Process 3 queries the data warehouse and transfers the results to a data mart.
1
1209
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 d.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"WIDTH ="550" HEIGHT="400" id="myMovieName"><PARAM NAME=movie VALUE="myFlashMovie.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="myFlashMovie.swf" quality=high...
6
5112
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 situation where I ended up with a backup that was in several pieces. the files were xxxxx.001 xxxxxx.002 and so on. I was thinking that if I could break up the file into smaller pieces they would be able to move easier. Does anyone know how to...
10
3691
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 "single" file with my app which works to get commandline arguments to get file paths: Dim cla As String() = Environment.GetCommandLineArgs() If cla.Length 1 Then
1
1315
by: nkothari | last post by:
Can someone help me with playing video files through java.
43
9923
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 does. I found a script that does this on easycfm.com (Topic 13543). But anyway when i try to upload multiple files it will create multiple records in my database (like it should), but it wont upload multiple files. What ever file i choose to upload...
4
4895
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 mydirectory, but for some reason, I am getting different file names on the database. Here is the full code: please do serach on kewword "database" to see where I added my database code - that where I need help with. And here the link where I got it...
0
1441
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 receive files between each other. I can send files sequentially between computers using network stream, but how would I send multiple files at the same time from computer A to B. Sending multiple files over one connection ( socket ) is fine, but...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10468
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.