473,806 Members | 2,967 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 13367
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
7227
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
1210
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
5121
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
3695
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
1316
by: nkothari | last post by:
Can someone help me with playing video files through java.
43
9924
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
4899
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
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10369
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...
1
10372
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
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
9187
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...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4329
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
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.