Portal Engine
Version 2.x > Portal Engine > Embedd Media Player in Product Default Transformation View modes: 
User avatar
Certified Developer 8
Certified Developer 8
norashlea - 5/5/2007 7:21:33 AM
   
Embedd Media Player in Product Default Transformation
Is this possible?

My products are media files, and I'm using the "ProductImage" field to upload a preview mp3. It's working fine, but I want to embedd the media player on the page to play the preview rather than opening in a separate window.

I can embedd media player ok, but it doesn't play the file. I'm setting:

<param name="filename" value=" + GetFileUrl("ProductPhoto") + ">

... but the product mp3 is stored in the database as an attachment, and GetFileUrl() just goes to "/getattachment/[guid]/[page].aspx.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/15/2007 12:01:01 PM
   
RE:Embedd Media Player in Product Default Transformation
The url in value attribute should be defined this way:

<param name="filename" value="http://localhost<%# GetFileUrl("ProductPhoto") %>">

Best Regards,

Martin Dobsicek