Online music player

greg's picture

He has: 1,581 posts

Joined: Nov 2005

I want some info about online music players.

It would be user selected within a player, I'm not talking about music played automatically on pages.

What is the best method for allowing a mp3's to be played from a selection of a few available?
Are the available methods resource heavy?

I want a method wihtout a plugin really, don't know if it's available but something that is standard in browsers or uses a linked plugin.

I hate it when I get told I need to download a plugin for xx to work, so don;t want that to happen.

Cheers

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

I think IE6+ Ffox2+ and some other browsers use Windows Media Player and/or Quicktime automatically for an mp3, if you click on the link.

Check here for different examples, see what works for you

http://www.w3schools.com/media/media_browsersounds.asp

greg's picture

He has: 1,581 posts

Joined: Nov 2005

hmm, that links is for the basic website sound file playing.

I was looking for an actual player. Select song, click play, pause, next track, volume etc.

I suppose it would have to be an embedded software, or flash.

EDIT
I did find this:
http://digitalmedia.oreilly.com/2006/05/31/build-a-better-web-audio-play...

It sounds plausable, especially:

If QuickTime is installed, the pop-up audio player seems to work fine. If QuickTime is absent, Internet Explorer still works, but other Windows browsers, like Firefox and Opera, would throw an error.

So, to make the player work, I had to tell Macs to use QuickTime and Windows PCs to use the Windows Media plugin. I first detect the visitor's operating system. Next, it determines the audio file's MIME type so the player will know how to handle it. Windows players will always get the MIME type application/x-mplayer2, which calls the Windows Media plugin. Macs (and Linux) will get a MIME type derived from the file's extension. For MP3 files, that's audio/mpeg.

Maybe that's common knowledge, but it is new to me and sounds like a decent setup

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Greg,

The last example on W3Schools is to play a midi (or other audiofile) with a link.

I also placed a link to a mp3 on this thread which links here and plays in a new (blank) document in the same window using Quicktime.

You could probably make the link target an iframe and keep it on the page... but someone without any media player (and running Windows 95?) might have a problem.

<p>
<a href="http://netsperience.org/sites/default/files/mp3/sympathy.mp3" target="player">
Click here to play the Stones</a>
</p>
<iframe id="player"></iframe>

greg's picture

He has: 1,581 posts

Joined: Nov 2005

Thanks for the info decibel, I'll continue to play with the options.

In honesty, if someone is using Windows 95, the media player not working on my website is the least of their issues Sticking out tongue

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.