即使世界明天毁灭,我也要在今天种下我的葡萄树。
posts - 112, comments - 14, trackbacks - 0, articles - 11

smil2.0常用命令解析

Posted on 2006-05-19 14:59 阅读(360) 评论(0)  编辑  收藏
(smil2.0常用命令解析):
〈smil>
〈head>
〈layout>
<!-- root-layout和region可以使用以下参数:background-color(color值)/fit(fill, hidden, meet, scroll, or slice)/-->
〈root-layout background-color="white" width="640" height="450" />
〈region id="bgroud" left="0" top="0" width="640" height="450" z-index="0" />
〈region id="chapter" left="137" top="23" width="300" height="15" z-index="1" />
〈region id="matter" left="50" top="55" width="260" height="330" z-index="1" />
〈region id="flash" left="50" top="55" width="260" height="330" z-index="1" />
〈region id="flash1" left="410" top="53" width="110" height="192" z-index="1" />
〈layout>
〈/head>
〈body>
<!-- dur="hh:mm:xyz"表示定义所有文件播放时间。
endsync使用参数:
id(audio)(在id号被定义为audio调用的文件播放完成时,SMIL停止播放)
first(播放时间最短的文件播放完成时,SMIL停止播放)
last(播放时间最长的文件播放完成时,SMIL停止播放). /-->
〈par endsync="id(audio)"><!-- 并行播放/-->
<!-- <TCH>......<TCH>表示在其之间的文件会按照系统以及设定情况而机动的调用其中的文件
参数:system-bitrate(传输速率)/system-language(使用语言). /-->
<!-- 调用文件常用参数:
<animation.../> 调用FLASH文件()
<audio.../> 调用RM音频文件(.rm)
<img.../> 调用RP文件或常见的网络支持的格式的图片(.rp、.jpg、.gif等)
<ref.../> 适用于任何文件的调用
<text.../>/<textstream.../> 调用rt文件(.rt)
<video.../> 调用rm视频文件(.rm)
<RealAdInsert.../> 调用banner(不常用)
常使用的值:
src、id、region、begin、eud、dur、fill、repeat、anchor,
特殊情况:调用常见的网络支持的格式的图片时使用的格式<img src= "URL?option=value&option=value"/>/-->
〈audio id="audio" src="../video/demo.rm"/>
〈text id="chapter-id" src="../text/chapter.rt" region="chapter" fill="freeze"/>
〈seq><!-- 串行播放/-->
〈text id="matter-id" src="../text/matter.rt" region="matter"/>
〈animation src="http://200.10.10.2/images/demo" region="flash" fill="freeze"/>
〈/seq>
〈animation src="http://200.10.10.2/images/qipao" region="flash1" fill="freeze"/>
<!-- 使用区域链接anchor命令格式。特殊链接:
href="openwindow(_new(_blank、_self、_current、name),
url,
autosize=true(false),zoomlevel=full(double、normal), ontopwhileplaying=true(false))"/-->
〈animation src="http://200.10.10.2/images/bg" region="bgroud" fill="freeze">
〈anchor href="command:play()" coords="391,410,417,434" begin="00:00.0" end="00:10.0"/>
〈anchor href="command:pause()" coords="429,410,453,434"/>
〈anchor href="command:stop()" coords="464,410,487,434"/>
〈anchor href="command:stop()" coords="499,410,523,434"/>
〈anchor href="command:stop()" coords="534,410,523,434"/>
〈/animation>
〈/par>
〈/body>
〈/smil>

只有注册用户登录后才能发表评论。


网站导航: