Medienclip via paragraph_movie.ccml ausgeben
Sie arbeiten mit Web to date 6.0 oder mit Shop to date 6.0??
Sie möchten Flashfilme ganz "normal" über den Absatztyp "Medienclip" anzeigen lassen? Wenn Sie auf schlanken Code setzen, der vom W3C-Validator akzeptiert wird, tauschen Sie die hier angebotene Datei einfach aus.
In jedem Fall zuvor eine Sicherungskopie erstellen.
Arbeitsschritte
- 1. paragraph_movie.ccml austauschen.
- 2. CSS- Styleangaben ergänzen
1. paragraph_movie.ccml
Um den gesamten Code ansehen zu können, nutzen Sie bitte die Markierfunktion mit Hilfe der Maus.
<cc:*>
--------------------------------------------------
Web2Date
Layout: MYDesign
Datei: paragraph_movie.ccml
Funktion: Movie-Absatz
valdiert von webdesignconsult.de:
Flashfilmeinbindung,
Real Media
Quicktime
--------------------------------------------------
</cc:*>
<cc:if cond="¶graph.movie.isflash">
<cc:if cond="¶graph.movie.url"><cc:set obj="mymovie.url" value="¶graph.movie.url">
<cc:else><cc:download uid="¶graph.movie.uid" obj="mymovie">
</cc:if>
<div class="flashmovie"><!--Start Movie-->
<object type="application/x-shockwave-flash"
data="<cc:print value="&mymovie.url">"
width="<cc:print value="¶graph.movie.width">"
height="<cc:print value="¶graph.movie.height">">
<param name="<cc:print value="&mymovie.url">"></param>
<cc:if cond="¶graph.movie.nocontrolbar">&shownavigation=false</cc:if><cc:if cond="¶graph.movie.autostart">&autostart=true</cc:if>">
</object>
</div><!--ENDE Movie-->
<br clear="all" /></cc:if>
<cc:if cond="¶graph.movie.isflv">
<div class="flashmovie"><!--Start Movie-->
<cc:asset obj="myplayer" src="mediaplayer.swf" common="1" noparse="1">
<cc:download uid="¶graph.movie.uid" obj="mymovie">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="<cc:print value="¶graph.movie.width">"
height="<cc:print value="¶graph.movie.height">">
<param name="wmode" value="opaque"></param>
<param name="allowScriptAccess" value="always"></param>
<param name="allowFullScreen" value="true"></param>
<param name="movie" value="<cc:print value="&myplayer.url">"></param>
<param name="flashvars" value="height=<cc:print value="¶graph.movie.height">&width=<cc:print value="¶graph.movie.width">&file=../downloads/<cc:print value="&mymovie.filename"><cc:if cond="¶graph.movie.nocontrolbar">&shownavigation=false</cc:if><cc:if cond="¶graph.movie.autostart">&autostart=true</cc:if>">
<embed src="<cc:print value="&myplayer.url">"
wmode="opaque"
width="<cc:print value="¶graph.movie.width">"
height="<cc:print value="¶graph.movie.height">"
allowScriptAccess="always"
allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="height=<cc:print value="¶graph.movie.height">&width=<cc:print value="¶graph.movie.width">&file=../downloads/<cc:print value="&mymovie.filename"><cc:if cond="¶graph.movie.nocontrolbar">&shownavigation=false</cc:if><cc:if cond="¶graph.movie.autostart">&autostart=true</cc:if>">
</embed>
</object>
</div><!--ENDE Movie-->
</cc:if>
<cc:if cond="¶graph.movie.iswindowsmedia">
<cc:if cond="¶graph.movie.url"><cc:set obj="mymovie.url" value="¶graph.movie.url"><cc:else><cc:download uid="¶graph.movie.uid" obj="mymovie"></cc:if>
<div class="mediamovie"><!--Start wmv Movie-->
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player"
width="<cc:print value="¶graph.movie.width">"
height="<cc:print value="¶graph.movie.height">">
<param name="url" value="<cc:print value="&mymovie.url">" />
<param name="src" value="<cc:print value="&mymovie.url">" />
<param name="showcontrols" value="true" />
<param name="autostart" value="true" />
<!--[if !IE]>-->
<object type="video/x-ms-wmv" data="<cc:print value="&mymovie.url" width="<cc:print value="¶graph.movie.width">" height="<cc:print value="¶graph.movie.height">"><param name="src" value="<cc:print value="&mymovie.url">" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>
<!--<![endif]-->
</object>
</div><!-- Ende wmv Movie-->
</cc:if>
<cc:if cond="¶graph.movie.isquicktime">
<cc:if cond="¶graph.movie.url"><cc:set obj="mymovie.url" value="¶graph.movie.url"><cc:else><cc:download uid="¶graph.movie.uid" obj="mymovie"></cc:if>
<div class="quicktimemovie"><!--Start Movie-->
<object id="QuickTimePlayer" classid="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
width="<cc:print value="¶graph.movie.width">"
height="<cc:print value="¶graph.movie.height">"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src value="value="¶graph.movie.url"></param>
<param name="autoplay value="true"></param>
<param name="loop value="false"></param>
<cc:if cond="¶graph.movie.nocontrolbar">
<param name="controller" value="false"></param>
<cc:else>
<param name="controller" value="true"></param>
</cc:if>
<embed id="EmbedQuickTimePlayer"
pluginspage="http://www.apple.com/quicktime/download/"
type="video/QuickTime"
cache="true"
src="<cc:print value="&mymovie.url">"
width="<cc:print value="¶graph.movie.width">"
height="<cc:print value="¶graph.movie.height">"
name="QuickTimeMovie"
autoplay="true"
bgcolor="#ffffff"
controller="false"
loop="false">
</embed>
</object>
<p>Damit der QuickTime-Film angezeigt werden kann, muss der <a href="http://www.apple.com/quicktime/download/" title="Link to External Site">Quicktime Player</a> auf Ihrem Rechner installiert sein.</p>
</center>
</div>
</cc:if>
<cc:if cond="¶graph.movie.isrealmedia">
<cc:if cond="¶graph.movie.url">
<cc:set obj="mymovie.url" value="¶graph.movie.url">
<cc:else>
<cc:download uid="¶graph.movie.uid" obj="mymovie">
</cc:if>
<div class="realmemovie"><!--Start Movie-->
<object id="realvideo" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="<cc:print value="¶graph.movie.width">" height="<cc:print value="¶graph.movie.height">">
<param name="controls" value="imagewindow"></param>
<param name="autostart" Value="true"></param>
<param name="console" value="console1"></param>
<param name="maintainaspect" value="true"></param>
<param name="nojava" value="true"></param>
<param name="src" value="<cc:print value="&mymovie.url">"></param>
<param value="true" name="imagestatus"></param>
<embed backgroundcolor="#000000" nojava="true" height="<cc:print value="¶graph.movie.height">" width="<cc:print value="¶graph.movie.width">" name="video" autostart="true" console="console1" imagestatus="true" controls="ImageWindow" src="<cc:print value="&mymovie.url">" type="audio/x-pn-realaudio-plugin" pluginspage="http://www.real.com/player/index.html">
</embed>
</object>
<cc:if cond="¶graph.movie.nocontrolbar" not="0">
<object id="status" width="330" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="30">
<param value="StatusBar" name="controls"></param>
<param value="#000000" name="backgroundcolor"></param>
<param value="<cc:print value="¶graph.movie.width">" name="WIDTH"></param>
<param value="30" name="height"></param>
<param name="src" value="<cc:print value="&mymovie.url">"></param>
<param name="console" value="console1"></param>
<embed height="30" name="status" width="330" console="console1" controls="StatusBar" type="audio/x-pn-realaudio-plugin" src="<cc:print value="&mymovie.url">" backgroundcolor="#000000" nojava="true"></embed>
</object>
<cc:if cond="¶graph.movie.nocontrolbar" not="1">
<br />
<object id="status" width="330" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="36">
<param name="controls" value="ControlPanel"></param>
<param value="#000000" name="backgroundcolor"></param>
<param value="<cc:print value="¶graph.movie.width">" name="width"></param>
<param value="36" name="height"></param>
<param name="src" value="<cc:print value="&mymovie.url">"></param>
<param value="console1" name="console"></param>
<embed nojava="true"
height="36" name="status"
width="<cc:print value="¶graph.movie.width">"
console="console1"
controls="ControlPanel"
src="<cc:print value="&mymovie.url">"
type="audio/x-pn-realaudio-plugin"
autostart="true"
pluginspage="http://www.real.com/player/index.html">
</embed>
</object>
</div>
</cc:if>
</cc:if>
</cc:if>
CSS
Um den gesamten Code ansehen zu können, nutzen Sie bitte die Markierfunktion mit Hilfe der Maus.