Log in

View Full Version : Audio in website



Carox
12-23-2010, 05:43 AM
Hi,

I am creating a website where I have to embed audios. I am not able to find a convenient way in which audios can be embedded. I have found out a website called soundcloud.com wherein we can upload the audio clips and then copy the widgets of soundcloud in our websites. I did so. I copied the embed code of the widget:

<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F8210892"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F8210892" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><a href="http://soundcloud.com/jaskiran/sacha-sirjanhara">Sacha Sirjanhara</a> by <a href="http://soundcloud.com/jaskiran">Jaskiran</a></span>

and pasted in the html file (under td tag). It works fine in Firefox 3.6.10 but is not working in IE 7.
Please suggest me a way in which I can embed the audio and vedio in my website. I can use my server space also for uploading.

Thanks.

jscheuer1
12-25-2010, 05:08 AM
There are other things like soundcloud you can use, some free. However, the code in your post works fine in IE 8 in IE 7 mode, except if I put it in a td in a table. It still works, but I only see the play button:


<table>
<tr>
<td>code from your post here</td>
</tr>
</table>

Unless I add an explicit width to the table:


<table width="80%">
<tr>
<td>code from your post here</td>
</tr>
</table>

Then everything's fine again. Your results may vary as there may be other factors involved in your layout and/or elsewhere that influence this.

If you want more help:

Please post a link to a page on your site that contains the problematic code so we can check it out.

themuddfamily
12-31-2010, 12:13 PM
Please explain more (the music you are trying to play is not hosted properly) if you have the file of the music please tell me and i could host it on my site if not yours

algo web dizajn
01-05-2011, 11:29 PM
you could try SoundManager2 - there's tons of demos on their site:
http://www.schillmania.com/projects/soundmanager2/

it's a really powerful piece of javascript, you can attach sounds on any event imaginable, create playlists etc.
you can store mp3 files on you server