How to ad media player in contents
Posted: Sat Dec 17, 2005 6:20 pm
User and developer community
https://board.s9y.org/
might it be possible to add a button in the wysiwig editor to insert this code...I put it in this way (with the MS media player) that works in forefox and IE:
Code: Select all
Video:
<OBJECT ID="MediaPlayer" WIDTH="320" HEIGHT="285" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="{$entry.properties.ep_VideoFile}">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="{$entry.properties.ep_VideoFile}" NAME="MediaPlayer"
WIDTH="320" HEIGHT="285" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
Code: Select all
<div class="serendipity_entry_body">
{$entry.body}
</div>
{if $entry.is_extended}
<div class="serendipity_entry_extended"><a id="extended"></a>{$entry.extended}</div>
{/if}
Code: Select all
<div class="serendipity_entry_body">
{$entry.body}
</div>
{if $entry.is_extended}
<div class="serendipity_entry_extended"><a id="extended"></a>{$entry.extended}</div>
{/if}
{if $entry.properties.ep_VideoFile}
Video:
<OBJECT ID="MediaPlayer" WIDTH="320" HEIGHT="285" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="{$entry.properties.ep_VideoFile}">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="{$entry.properties.ep_VideoFile}" NAME="MediaPlayer"
WIDTH="320" HEIGHT="285" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
{/if}