Embed & autoplay mp3 or wave

vbuser49

New Member
I need to have some embedded audio autoplay. I'm currently using AME with a definition for locally hosted MP3 files. AME doesn't autoplay the MP3. I like this function of AME and don't want to lose it. However I do need certain audio files to autoplay. I thought maybe the files I need to autoplay I can upload in wave format and have a separate code to embed the wave file. Is this possible? It would be ideal if the wave audio would autoplay but there would also be an option to turn it off/stop. Thanks.
 
Flash is client side, ie your visitors must have flash installed (Adobe claim that 99% of web users do) It doesn't require anything on the server.

I use a program called "Blaze" (Audio/Video Editing, Converter Software (CD MP3 WAV WMA OGG AVI MPEG WMV etc)) to convert videos to Flash, and it generates the control buttons too (stop, play, pause, etc) in a number of styles.

It's worth a look if you plan on using flash, although I'm not sure if it supports MP3 but there are freeware programs that do if you check on google.
 
This is the solution I'm using, no conversion necessary:

1. Install mod: Allow users to post HTML.
2. Allow only administrators (me) to post HTML.
4. Upload the MP3 file to my server.
5. Use the following code in a post changing the location of the MP3 file to your location:
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="250" height="20"> <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" /> <param name="bgcolor" value="#384651" /> <param name="FlashVars" value="mp3=http://www.MYSITE.com/FILE.mp3&autoplay=1&width=250&showstop=1&showinfo=0&showvolume=1&bgcolor=384651&bgcolor1=31a2f4&bgcolor2=0b8eee&slidercolor1=ffffff&slidercolor2=CCCCCC&sliderovercolor=ffff00" /> </object>

The resulting embedded flash player is customizable by changing the parameters. You can change settings such as autoplay on/off, player colors etc. You can learn how to do that here MP3 Player

Code generator page is here MP3 Player - Players - MAXI - Generator
6. The flash player will appear in the post.

77392608.jpg
 
saram1805, my understanding is that if you have a flash file, FLV or SWF you still need to embed a player. I don't like SWF for longer videos because it's not streaming.
 
This is the solution I'm using, no conversion necessary:
The resulting embedded flash player is customizable by changing the parameters. You can change settings such as autoplay on/off, player colors etc. You can learn how to do that here MP3 Player

Code generator page is here MP3 Player - Players - MAXI - Generator
6. The flash player will appear in the post.
That appears to use an external site. Which would work I guess, but I prefer not to rely on other sites to provide my content. Best case, it slows load times. Worse case, the other site is down. Worst case, they decide to start cookie stuffing, flash style.

The benefit of it of course is it allows your users to upload files and you can possibly integrate and play them dynamically. If that's an aspect of your site then I guess it would work, although personally I'd prefer to install the software it on my own server and run it from there. If I have pre-determined content, I just convert and stream it normally.

As for server side elements, you dont need anything on the server for swf. You just upload a swf file, and point to it in html and it loads just as easily as an image. You literally just load the object, and the flash player at the client side will handle it.

If by player you mean the little thing with the buttons (play pause etc) that's just another SWF file that is told to interact with the main swf. I believe the flash player has this functionality anyway if your embedded object has a width / height specified but no viewable content to put in that real estate. I'm not sure though, I've always used my own "player".

As for streaming; Flash content is streamed.
 
Saram, I also prefer not to go to an external site for the reasons you mentioned, I didn't know about the 3rd reason. But you can download that player and put it on your site, then just point to it.

The reason I don't like SWF as opposed to FLV is that the whole file has to be downloaded by the browser before it will start playing it. If the video or music file is big this will take a long time. I thought streaming is when the browser starts playing the file immediately as it downloads.
 
vbuser49 said:
Saram, I also prefer not to go to an external side for the reasons you mentioned, I didn't know about the 3rd reason. But you can download that player and put it on your site, then just point to it.

The reason I don't like SWF as opposed to FLV is that the whole file has to be downloaded by the browser before it will start playing it. If the video or music file is big this will take a long time. I thought streaming is when the browser starts playing the file immediately as it downloads.
FLV (or F4A for audio) files are flash files though; they're what I'm talking about. They play in flash player; an embedded SWF file can interact with it. The SWF component can be under 1KB, it doesn't delay streaming.

Flash does stream. Youtube videos are in flash, for example. There is a server side component to more serious flash sites (Flash Media Services) but even without it, your music would simulate streaming through "progressive downloading".
 
Back
Top