Posted on 2006-05-19 14:59
花 閱讀(367)
評論(0) 編輯 收藏
(smil2.0常用命令解析):
〈smil>
〈head>
〈layout>
<!-- root-layout和region可以使用以下參數(shù):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使用參數(shù):
id(audio)(在id號被定義為audio調(diào)用的文件播放完成時,SMIL停止播放)
first(播放時間最短的文件播放完成時,SMIL停止播放)
last(播放時間最長的文件播放完成時,SMIL停止播放). /-->
〈par endsync="id(audio)"><!-- 并行播放/-->
<!-- <TCH>......<TCH>表示在其之間的文件會按照系統(tǒng)以及設(shè)定情況而機動的調(diào)用其中的文件
參數(shù):system-bitrate(傳輸速率)/system-language(使用語言). /-->
<!-- 調(diào)用文件常用參數(shù):
<animation.../> 調(diào)用FLASH文件()
<audio.../> 調(diào)用RM音頻文件(.rm)
<img.../> 調(diào)用RP文件或常見的網(wǎng)絡(luò)支持的格式的圖片(.rp、.jpg、.gif等)
<ref.../> 適用于任何文件的調(diào)用
<text.../>/<textstream.../> 調(diào)用rt文件(.rt)
<video.../> 調(diào)用rm視頻文件(.rm)
<RealAdInsert.../> 調(diào)用banner(不常用)
常使用的值:
src、id、region、begin、eud、dur、fill、repeat、anchor,
特殊情況:調(diào)用常見的網(wǎng)絡(luò)支持的格式的圖片時使用的格式<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"/>
<!-- 使用區(qū)域鏈接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>