ActionScript 2.0 :: Create A Streaming MP3 Player With Multiple Songs?
Dec 1, 2004
How do you create a streaming MP3 Player with multiple songs? My dilema is not getting the song to play but how do you create it so that no matter which song its on it will go to the very next one? like if it is song 3 go to 4. Because that would be a variable that would constantly change.
where on this site or another site can I find a good in dept tutorial or tutorials on control over music and sound IE loading, playing, and so on. I know the basics but im trying to make a player with multiple tracks and songs that are too big to just place in the flash movie
I'm looking to create a music player where one can upload songs from any computer on the web and play them back... is this possible and if so how would I go about creating it?
I've been messing with this for almost six hours now and am at the end of my wits. I need a flash mp3 player that follows the following guidelines:
*all encased within its own movie clip *loads four different songs, one after the other (event) *each song displays its own loader *user scrolls through song selection and plays available (loaded) ones *first song plays when loaded and continues to the others
any tips on where to go with this? do I create four different sound objects since later songs are loading while the first are playing?
I would love to have the ability to load this into my flash component That is live streaming trance, from di.fm. Is there an easy way? or a way at all?
I'm having issues with this array I setup for a MP3 player I am creating. First I'm trying to plug in the array in the URL Request, not sure if I need a for loop. Also in my onComplete Function below, I want once one song is finished in the Array, the next item in the array plays or if there are no more items left it goes back to the first item in the array. Not sure if I am setting this up properly
var songArray:Array=["song1", "song2", "song3", "song4", "song5", "song6"]; var songReq:URLRequest = new URLRequest("mp3_files/song" + songArray + ".mp3"); var song:Sound = new Sound();var channel:SoundChannel;var pausePosition:int = 0; // var
I found this nifty code (here) for an MP3 player that uses XML/URLRequest to load the songs in.I'm trying to implement this code on my own application, and I've run into a couple of errors.I've got the XML loaded into the application, and it's showing up in a List component.But it's not letting me to play songs from it quite yet.This is the error I'm getting:
I've read something about IOErrorHandlers, but I'm not quite sure how to use them, where to put them and what to read from them..If needed I'll paste my full code. The original code is from here <-, as posted above.
I have a music community website, visitors can sign up, upload mp3 files, their files get uploaded into their own folder named '$id' in the php code, (if they are the 10th member to sign up, their folder would be named 10, and so on)
I have a prebuilt flash player that I want to playback the mp3 files just for that member when their profile is being viewed, I have some code in the mp3 upload script that automatically writes an xml file to their folder containing their song data, with Andrei1's help, I got that part working using flashvars, now the problem I am having is that I can't get the songs to play back, the data is there but no music.
as I said I am using a prebuilt flash player that is using a static call to a directory, so should I use flashvars again to load the mp3 files into the player? and I also need help figuring out what to change in the actionscript.here is the object embed src for the html:
I am making a photo slideshow with music playing in the background. I have the first song in so it plays as soon as the slideshow starts. I want more than one song to play. I would like a new song to start as soon as the old song is complete. I tried creating another music variable underneath the first code but that didn't work. How can I add more songs so when one song ends the next one starts playing?
Im new to the AS3 game but I need some help with something. I have built a pretty good website mp3 player but it plays the songs in order. I want the the mp3 player to play a different song everytime it loads.[code]
I recently made an mp3 player that reads off of a text file so that users may cycle through a selection of songs. I'm trying to extend it a bit by setting up the mp3 player to display the songs names an their duration (5:45) I'm pretty confident this is possible and I've tried a number of things and read a number of threads and tutorials but I'm still stumped.
It is action script 3. As of right now I have a button that plays a song and I have a button that stops a song. The music plays as soon as the file is open. What I am trying to do is upload 3 more songs and add a skip button that will skip to the next song.After the user clicks 4 times it goes back to the 1st songs again.I was going to avoid using a pause, a step back to previous song button and a volume slider. [code]!
I'm not sure if this is the right spot for this question but i want to edit an xml flash player so that it creates the playlist with the name i want and not the default. Can some please tell me how to edit this so that when the player locates songs in the folder "my_mp3s" it creates an xml playlist named "mymusic.xml" instead of the default "audioplaylist.xml". I tried to edit the actions script of the player and overwrite the changes but it still doesnt work,
I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.
i am New to flex.Can any one point me to a small piece of mxml code which plays audio files(mp3,wav.....) also which has the capabilities to pause, play, stop.... the audio file. Also this file would be embedded in a html file later on..
Its been two years since I built a video player and back then Flash was the only choice (just about). My question is if I want to stream a .h24 video over the web that is cross browser and platform compatible, has anything the ubiquity of Flash? How about Flowplayer?
I'm trying to get a streaming XML mp3 player to work
Alright, first go here [URL] it works, right? Now go to [URL] Notice I have the exact player set up there, but it doesn't work... why? Is it a myspace thing?
Just installed Windows 7 RC (7100), and got the latest Flash player for IE8 and Opera. My site [URL] has a music player I created that plays (streams) MP3s from a Flash Comm Server I run. The player works fine with Flash Player version 10.0.22.87 on other platforms, but not in Windows 7. Once you pick a song, it should start immediately. Even clicking the play button doesn't work. The symptoms make me think there's a problem establishing the netconnection for streaming. Wondering if anyone else has Windows 7 specific problems with Flash player?
I am pretty dense about flash, pretty new to the software so bare with me. So on the main .fla i have linked to a button to open the external swf mp3 player. That Mp3 player is streaming a song with the code var req:URLRequest = new URLRequest("mysong.mp3"); snd.load(req);
the mp3 is in a folder which is located in the same place as both the .fla and .swf mp3 player. Streaming the mp3 works when testing the swf. but there is no sound when testing the linked swf mp3 player in the main .fla. It's like the file path messes up but i dont know how to go about fixing it?
I'm struggling with a flash file that I want to play two different sound files when the appropriate buttons are pressed.I've gotten it to the point where it will load without any errors popping up, but instead of playing the second sound when I press the button for that sound, it plays the first sound again. Here's the code:
var sc1:SoundChannel = new SoundChannel(); var s1:Sound = new Sound(); s1.load(new URLRequest("http://www.website.com/wells.mp3"));
we are using flash interactive server 3.5 and have just noticed that when flash player upgrades to 10r32 the streaming fails? Is this a known issue and does anyone know if it is specifically a rtmp prob?
i would like to ask which is the best way to embed my .swf player to my blog and my site to view my streaming video from my FMS?The whole streaming proccess works great but i do not know how to put the .swf player to my blog and my site
It's streaming RTMP, and I'm trying to get my video to seek correctly if the user clicks on the groove bar (gray bar under the green progress bar) Currently it does not seek and gives me a NaN on my duration variable and an error on my progress bar width variable, which is puzzling me.
For some reason my videoDuration variable is coming up as NaN when used inside of my seeker function, also I'm getting a null object reference error when trying to trace out playerCntrls.progressTotalW which is the total width of the groove bar[code]...
I need to figure out how to utilize one SWF player/file to load different streaming F4V files dynamically.[code]...
Currently I am publishing a separate SWF player/file for each F4V, but this is unacceptable. I need to use one SWF file to load different F4V files. I'm not that knowledgeable in the ways of Flash, but I believe that the "src" attribute of the embed tag and the "name='movie'" attribute of the object's param tag needs to point to the SWF player/file. So does anybody know how I can manipulate the object and embed tags to make them load a different F4V file into the SWF player?
I have written a little MP3 streaming player. Nothing big. But on some file, it takes longer to fill enough of the buffer before starting to play. My construct is fairly simple...
var player:Sound = new Sound(); player.onLoad = function(success:Boolean):Void { if (success) { // do something; }} player.loadSound(musicURL,true);
Since I have specified streaming, this will auto play as soon as the buffer is full. What I'd like to do is play a little animation or something while the buffer is filling so the user won't think the player has hung.