Go Back   Dynamic Drive Forums > General Coding > HTML
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-10-2006, 10:57 PM
shinynewmusic shinynewmusic is offline
New Comer (less than 5 posts)
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML Help:MP3 player on site

I have looked everywhere on the internet and I can't find the code I need for my site. I don't even know if a code like/similar to this exists. It needs to do the following things:
- shows a simple player that displays the name of the song playing.
- doesn't allow you pause, fast forward, stop etc. the song that’s playing (so that everyone on the site at the time is listening to the same song)
- plays up to about 100 (or something like that) MP3 files on repeat, where you just put in all the links to your uploaded MP3s into the code and it plays them through randomly from when the page loads.
-I wouldn't have to upload/download too many files in order to make the player work, just a simplish code.

I suppose in theory the player would sorta have the same affect as a radio station, if you want to look at it like that. If anyone could help by posting a code or link to a code that would work or emailing me (priorfa@aol.com) I would be really grateful.

If you visit my site here > http://www.florencep.co.uk , (the site isn't officially open yet, still work in progress) you will see that without an MP3 player like the one I described above, the site won't work. I am not really new at using HTML and building websites, I have been doing it for a couple of years for fun but I still can't really handle anything really complicated (i'm young ), so I wouldn't be able to work a player code with the playlist thing (if you know what I'm talking about), where you link to a playlist you make of your files (unless someone described it to me really simply because I haven’t understood it so far from any of the sites I have been on), and I can't upload .midi or .wav files, and anyway my site it based on sending in .mp3 files so it would just need to be able to play them.

Sorry if I have gone on a bit in this post, but any help would be REALLY appreciated, it may just well save my website. Thanks in advance.
Reply With Quote
  #2  
Old 06-10-2006, 11:33 PM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

Quote:
-I wouldn't have to upload/download too many files in order to make the player work, just a simplish code.
You do realize that any data (sound) that is to be played on one's computer must be downloaded, right? You can't avoid sending the data to someone's computer.
If you're wanting file protection, so the songs can't be downloaded, you can make it slightly harder to find the link, but there is NO way to stop the downloads.
You can have it streaming though, like on the page.

Quote:
- doesn't allow you pause, fast forward, stop etc. the song that’s playing (so that everyone on the site at the time is listening to the same song)
Embedding the song in a page is fairly easy. Controlling it is harder. And then synchronizing it is even more complex.
This is very hard to do.
You could control what song at what time, but the problem would be that you would have viewers constantly coming to your page, and they would need to join in mid-song, which would be very hard.

It sounds basically like you want a web-based radio station... that's a lot more than just coding a simple addition to a page. You'd need both complex server-side coding (with databases and such) as well as very complex client-side coding (javascript) to set things up, as well as maybe even flash.
It's arguably possible, depending on the complexity you desire, but it would be a lot of work.

If you're flexible, then something might work, but if you require something matching all of your notes above, I'd suggest you actually look into creating a radio station, like you can do through iTunes. It might be fairly complex to do, but that also may be the only way to get everything you want.


I know you're saying that you can't do anything too complex, but you need to choose between having complex things and keeping it simple... sorry
I can, however, guarantee there is no simple way of doing what you're asking.

If you're willing to be flexible, you can probably work it out to have something, but it will likely not do everything you're saying above.
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية
Reply With Quote
  #3  
Old 06-10-2006, 11:46 PM
shinynewmusic shinynewmusic is offline
New Comer (less than 5 posts)
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

-I wouldn't have to upload/download too many files in order to make the player work, just a simplish code.

You do realize that any data (sound) that is to be played on one's computer must be downloaded, right? You can't avoid sending the data to someone's computer.
If you're wanting file protection, so the songs can't be downloaded, you can make it slightly harder to find the link, but there is NO way to stop the downloads.
You can have it streaming though, like on the page.
_____________________
I meant not upload lots of skins and software for the player.
Thanx for replying by the way. I am willing to be flexable about it, I can see how having the song playing at the same time on all pc's would be very difficult - i could do without this. It was just because the site works with a message board and I thought it would be easier for people to comment on music if they were all hearing the songs at the same time. The main thing I need is for it to display what song is playing and by who. I suppose it doesnt even matter if you can pause and stop and skip songs, just as long as it plays songs through on random. I just need a code that works!
Reply With Quote
  #4  
Old 06-11-2006, 12:06 AM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

Ok, wasn't sure about the downloading thing, but that's fine... skins are easier left out, obviously.

My thought then would be to have a choice of say 3 songs at a time. Every.... 3 minutes? 4? whatever seems to be the average length for songs on the site... or you could even code in the length of each song...
anyway, at that amount of time, have a new song become available, and the oldest one rotate out.
They could choose any of them to play, and as long as they get the link within the time, they could start the song.

Unless you have a chatroom, it doesn't need to be syncrhonized... a forum isn't even close to real time. Rarely would there be two people talking about the current song at the same time.

It's a pretty complex code still. Not sure what the best way to go about it would be.

It would be time consuming to code, I'm sure.
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية
Reply With Quote
  #5  
Old 06-11-2006, 07:55 AM
Jack's Avatar
Jack Jack is offline
Regular Coders
 
Join Date: May 2006
Posts: 255
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Check this out...

www.coffeecup.com

CoffeeCup Web JukeBox
Add A Cool Music Player to your Website ! Web JukeBox is a music player for your Website. It comes with over 20 cool players that will match any Website design.

Very easy to install...
__________________
"Only dead fish flow with the stream".
- Unknown
Reply With Quote
  #6  
Old 06-11-2006, 08:14 AM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

Yeah, flash is a good idea here, and that's pretty cool.

I do wonder how it would be to control having the right songs at the right time, but I don't know what that's such a big issue... might just be easier to forget about that.
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية
Reply With Quote
  #7  
Old 06-11-2006, 08:05 PM
shinynewmusic shinynewmusic is offline
New Comer (less than 5 posts)
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the replies, that CoffeeCup Web JukeBox looks amazing but unfortunately I really need something that doesn't require money spent on it.
Reply With Quote
  #8  
Old 06-11-2006, 08:15 PM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

It's not that expensive. You said you were young, but just babysit for a couple hours. Really, it'll save you a heck of a lot of time in the end.
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية
Reply With Quote
  #9  
Old 06-11-2006, 09:25 PM
Jack's Avatar
Jack Jack is offline
Regular Coders
 
Join Date: May 2006
Posts: 255
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by shinynewmusic
Thanks for the replies, that CoffeeCup Web JukeBox looks amazing but unfortunately I really need something that doesn't require money spent on it.
From what I understand its free! (Download the shareware version)
__________________
"Only dead fish flow with the stream".
- Unknown
Reply With Quote
  #10  
Old 06-12-2006, 07:34 AM
djr33's Avatar
djr33 djr33 is offline
Global Moderator
 
Join Date: Mar 2006
Location: N. California, USA
Posts: 6,408
Thanks: 11
Thanked 82 Times in 82 Posts
Default

Looked to me like that was just a trial.
__________________
Daniel - <?php?> | <html>| Ich lerne Deutsch. | Studio l'italiano. | Estudiaba español. | Estudo português. | 日本語の勉強。| मैं हिन्दी सीखो | درس العربية
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.