Hey guys, I've been looking for an answer for a few hours and I can't find one, so here's the deal:
I have a long list of .mp3 songs (about 100). I'd like to add a play / stop toggle button next to each song (like iTunes) so the viewer can play and stop the song (like a preview of the song). What is the best way to do this in Dreamweaver CS4? Do I need to create this in Flash then import into DW?
1) you can do this in Flash and it's not that hard. Do a search engine search for Flash MP3 Player and you will find some tutorials
I'm not sure I understand your question. Are you assuming that each time the page loads every song will play one after the other without the user interacting with the page? Or are you asking that the page would preload every song prior to hitting the play button by the user?
Thanks yes it was the latter. I was worried about the preloading of all songs - good to know about the Flash & HTML options.
Here's how things have progressed so far in a nutshell:
I've created a page in Dreamweaver and imported the .swf files from Flash (the play/stop button) for each song. They seem to work well with one exception: I need the current playing song to stop playing if the user presses play on another song. Would this be code done in Flash (for each play button) or would this we done in Dreamweaver (for the whole page)? Lastly, what would that code be?
That's a very good question. The first question I have for you is are all of your songs your own copyright-owned songs? In other words did you create the entire content of each song? Or are you licensed to distribute the songs? (distribution includes posting them online)
If so, then read on.
What I would do is either
1) Create a Flash version which is much more robust in this day than the HTML5 players that I've seen. You can use an XML list (which you can probably do for HTML5 as well but I haven't seen good examples) and thus populate your mp3 player dynamically so that you don't have to recode in Flash every time you want to change your playlist. Then provide a download link for each song for people viewing on iPad or iPhone or Android Jellybean (which won't be supporting Flash Player either I have heard)
2) Create an entirely HTML5 version
3) Post your songs on iTunes and AmazonMP3 using a music distribution service and sell your albums.
4) Use a hosting service for music files such as "soundclick" or "soundcloud"
Great suggestions. I've seen a few really nice Flash players for XML playlists but what I'm interested in is an individual preview button for each song (like in iTunes). For instance there could be a list of 10 songs and next to each would be an individual play button that would preview about 10 seconds of each song. However,the last piece of the code puzzle would be a few lines of code that would stop a currently playing song if another play button was pressed by the user (to prevent overlap of the playing songs).
So with that specific information, woudl I be better off going the Flash route or HTML5?
Thanks I really appreciate your input.
I get it and appreciate your thoughts. I think you're right a lot of people are moving away from Flash - which really is the BIG question. To stick with it or to move on to HTML5 which isn't really as robust as Flash is at this point. Thanks again.
Flash is practically a dead web technology. Adobe no longer supports Flash development on mobile devices.
That said, if Adobe has abandoned Flash for mobiles, ask yourself who your site's target audience is. I'll admit, Flash audio is nicer than HTML5<audio> but in the end, it doesn't matter if nobody can hear it.
Another way to look at it: Are you building this site for a short term existence (6-12 mos) or a long term one (2-3 years)?
If long term, use HTML5.
Europe, Middle East and Africa