Forums / Setup & design / Need help with real video files

Need help with real video files

Author Message

h8 me

Thursday 12 May 2005 5:19:03 am

hi,

i'm trying to include a real-audio file into an existing template. i tried to include the standard full view template (slightly moddified) into a template section where i fetched the object.

{* Real video - Full view *}

<div class="content-view-full">
    <div class="class-real_video">

    <h2>{$:item.name}</h2>

    <div class="attribute-short">
        {attribute_view_gui attribute=$:item.data_map.description}
    </div>

    <div class="content-media">
    {let attribute=$:item.data_map.file}
        <object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
                {section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section}>
        <param name="src" value={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} />
        <param name="controls" value="{$attribute.content.controls}" />
        <param name="autostart" value="{section show=$attribute.content.is_autoplay}true{/section}" />
        <embed src={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl}
               {*pluginspage="{$attribute.content.pluginspage}"*}
               pluginspage="http://real.com"
               type="audio/x-pn-realaudio-plugin"
               {section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} autostart="{section show=$attribute.content.is_autoplay}true{/section}"
               controls="{$attribute.content.controls}" >
        </embed>
        </object>
    {/let}
    </div>

    </div>
</div> 

but it doesn't work. how could i manage to show a media file into a template? just with the {attribute_view_gui} doesn't work either.

Sorry for the perhaps stupid question, but i wasn't able to find ANYTHING on that topic.

thx in advance