Custom MP3 Flash Player

This is a simple MP3 player that can be embedded into any HTML and play a referenced MP3 file. You just need to upload the attached swf file to the "FILES" design element section and insert your formula/HTML.
Flash • HTML • Lotus Formula • Lotus Notes View

EXAMPLE: View Column

file := "/" + @WebDbName + "/" + @Subset(@ViewTitle;-1) + "/" + @Text(@DocumentUniqueID) + "/$File/" + @AttachmentNames;

dynwidth := "100";

@If(
@Attachments!=1 ; "" ;

@LowerCase(@Right(@AttachmentNames;4))!=".mp3" ; "" ;

"<div style=\"display:block;width:150px;text-align:right;\">
<object width=\""+dynwidth+"\" height=\"17\">
<param name=\"wmode\" value=\"transparent\"/>
<param name=\"movie\" value=\"" + "/" + @WebDbName + "/MusicPlayer.swf\">
<param name=\"flashvars\" value=\"mediaURL="+file+"&amp;mediaWidth="+dynwidth+"&amp\"/>
<embed type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\""+dynwidth+"\" height=\"17\" src=\"" + "/" + @WebDbName + "/MusicPlayer.swf\" flashvars=\"mediaURL="+file+"&amp;mediaWidth="+dynwidth+"&amp\"/></object></div>"

)
Attached files

MusicPlayer.swf


10,043 bytes

Written by Frank Joseph Brefere III

Posted by fbrefere001 on Tuesday August 12, 2008