Welcome to WebmasterWorld Guest from 54.234.129.215

Forum Moderators: incrediBILL

Message Too Old, No Replies

Playing music files

     

getxb

7:31 am on Oct 29, 2008 (gmt 0)

5+ Year Member



Hi,

I am trying to play midi, mp3, wav files in my web pages. Can anyone please suggest what is the best way to do that? I am trying to make the files play independent of Quick Time player.

Regards,
Ramnath

bill

7:54 am on Oct 29, 2008 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



A lot of people will honestly tell you the best way is NOT to play music in any web page. If you're still determined to go down this path then you might want to look into a FLASH widget or other embedded content player.

piatkow

2:34 pm on Oct 29, 2008 (gmt 0)

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 5+ Year Member



A simple link will play the file with whatever program the visitor has mapped to that file extension.
If nothing is mapped then it will just download.

You can also embed a player within your site.

Setting music to play automatically is a definite no-no. The visitor may be in an environment where they don't want music playing, they may be listening to their own music, they may be listening to the radio. Media files will gobble up your bandwidth and visitors on slow connections will be annoyed when they cut in well after the rest of the page has downloaded.

getxb

2:52 pm on Oct 29, 2008 (gmt 0)

5+ Year Member



Thanks for your comments.

I made a .gif image for upcoming Halloween for the visitors of my blog and made a special page for that. What kind of flash widgets shall I look for (like shall I look for flash widgets for midi files?).

A simple link will play the file with whatever program the visitor has mapped to that file extension.

This would have been more than sufficient for me. In case its not mapped I don't want the visitors to download the file.

bill

6:48 am on Oct 30, 2008 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You can't know or control what a visitor will have mapped for any particular file. Stick with a download of a common format, like mp3, and you'll be OK. Let them handle it on their own system.

jalarie

6:10 pm on Dec 1, 2008 (gmt 0)

10+ Year Member



From: piatkow: You can also embed a player within your site.

How do you do that?

tedster

10:11 pm on Dec 1, 2008 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



jalerie, try the search engines for that information - there are many tutorials online for all kinds of embedded players. The full details would be a bit too much for this thread.

Seb7

7:12 pm on Dec 9, 2008 (gmt 0)

5+ Year Member



I was playing around with embed'ing sound in to a page for the first time recently, and was shocked to find there is no standard way of doing this.

CWI Tech Guy

2:22 am on Jan 6, 2009 (gmt 0)

5+ Year Member



odeo.com has a good embedded mp3 player that you may want to consider. Here is the code for it. Simply add the URL for the mp3 you want to play (the mp3 must be web accessible) to the " [MP3 file address]" heading

<embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" quality="high" width="300" height="52" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url=[MP3 file address]" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>

so it would look like this

<embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" quality="high" width="300" height="52" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url=http://www.yourdomain.com/song1.mp3" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>

Its pretty simple.. but nicely effective.

Credits too
[googlesystem.blogspot.com...]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month