homepage Welcome to WebmasterWorld Guest from 54.166.159.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Playing music files
getxb

5+ Year Member



 
Msg#: 3775568 posted 7:31 am on Oct 29, 2008 (gmt 0)

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

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3775568 posted 7:54 am on Oct 29, 2008 (gmt 0)

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

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



 
Msg#: 3775568 posted 2:34 pm on Oct 29, 2008 (gmt 0)

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

5+ Year Member



 
Msg#: 3775568 posted 2:52 pm on Oct 29, 2008 (gmt 0)

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

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3775568 posted 6:48 am on Oct 30, 2008 (gmt 0)

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

10+ Year Member



 
Msg#: 3775568 posted 6:10 pm on Dec 1, 2008 (gmt 0)

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

How do you do that?

tedster

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



 
Msg#: 3775568 posted 10:11 pm on Dec 1, 2008 (gmt 0)

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

5+ Year Member



 
Msg#: 3775568 posted 7:12 pm on Dec 9, 2008 (gmt 0)

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

5+ Year Member



 
Msg#: 3775568 posted 2:22 am on Jan 6, 2009 (gmt 0)

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...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved