跪求一个JSP的播放器代码,根据数据库里边媒体类型的字段自动判断用某种类型的播放器,WMV的FLASH的和FLV的,根据不同的类型选择不同的播放器! 跪求代码!跪求能人,能用100分全给!

解决方案 »

  1.   

              [/#if]
    </div>
            [#if pagination.firstPage]
            <div class="summary"><strong>摘要:</strong> [@text_cut s=content.description len='50' append='...'/]</div>
            [/#if] [#if content.mediaPath?? && content.mediaType??]
            <p style="margin: 5px auto; text-align: center">[#if content.mediaType=='FLV'] <object height="300" width="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
            <param name="movie" value="/${res}/img/flvplayer.swf" />
            <param name="quality" value="high" />
            <param name="allowFullScreen" value="true" />
            <param name="FlashVars" value="vcastr_file=${content.mediaPath!}&BufferTime=3" /><embed height="300" width="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="vcastr_file=${content.mediaPath!}" allowfullscreen="true" src="/${res}/img/flvplayer.swf"></embed></object>[#elseif content.mediaType=='FLASH'] <embed height="300" width="400" type="application/x-shockwave-flash" quality="high" src="${content.mediaPath}" wmode="transparent" align="center"></embed>
            [#else] 
            <embed height="300" width="400" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed>
            [/#if]</p>
            [/#if]
            <div class="content">${txt!}</div>
            <div class="pagebar">[#include "../style_page/content.html"/]</div>
            <div class="tags"><strong>Tags:</strong> [#if content.tagStr??] [#list content.tags as t]<a target="_blank" href="${base}/tag/${t.id}.jspx">${t.name}</a>[/#list] [#else] 本文暂无Tags! [/#if]</div>
            <div class="other box">[#if channel.allowUpdown]
            <div class="ding fl" onclick="Cms.up('${base}',${content.id},${content.ups});">