Portal Engine
Version 3.x > Portal Engine > Insert MP3 Flash Player View modes: 
User avatar
Member
Member
Michael - 11/4/2008 7:24:24 PM
   
Insert MP3 Flash Player
I am looking to host MP3 files on my web site and would like to embed an audio player within a web page or blog entry. I have uploaded the supporting .js and .swf files to the web server via FTP and now I would like to add the HTML code.

http://www.macloo.com/examples/audio_player/

What approach do I need to use to add this content to a page or blog entry? I have added a static HTML web part, but the flash player doesn't render. Any suggestions?

Michael

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 11/6/2008 10:48:25 AM
   
RE:Insert MP3 Flash Player
Hi Michael,
I was doing some testing and everything works fine for me.
There is setup I have used.
1. I have created audio folder in root of my website application and put files player.swf and audio-player.js into it.
2. I have add file test.mp3 into this folder too (it was part of audio player package but it contains no sound, so nothing could be heard, in fact it was little bit confusing)
3. I have added this html text into static html webpart in source mode:

<script language="JavaScript" src="/KenticoCMS_3.1a1/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="/KenticoCMS_3.1a1/audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="/KenticoCMS_3.1a1/audio/player.swf" />
<param name="FlashVars" value="playerID=1&soundFile=/KenticoCMS_3.1a1/audio/test.mp3" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
</object>

Please note that /KenticoCMS_3.1a1/ is path to my website folder under the root of web and it should be change according to your folder structure.

4. Everything was working correctly

Best Regards,
Zbysek Nemec