流媒体技术使得我们在线观看视频流畅快速,可以利用ASX嵌入到网页文件(HTML)中做成播放列表
看MS的ASX媒体格式可以做许多好玩的东西
首先看ASX格式的内容,就象一个XML文件:
基本格式:
ASX/Playlist
<ASX Version = "3.0">
<Entry> <Ref href = "http://server/song1.asf" <//> </Entry>
<Entry> <Ref href = "http://server/song2.asf" <//> </Entry> <Entry> <Ref href = "http://server/song3.asf" <//> </Entry>
<Entry> <Ref href = "http://server/song4.asf" <//> </Entry>
</ASX>
ASX/Copyright
文字代表 .asf 檔或輸入項目的著作權資訊。此資訊由用戶端顯示在詳細資料窗格中。例如:
<Copyright>Copyright?, wgscd.</Copyright>
<Copyright>Copyright?, wgscd.</Copyright>
ASX/MoreInfo (按選)
指定 Uniform Resource Locator (URL),以便取得內容提供者所提供的其他資訊,理論上與輸入內容相關。 當您要求更多資訊時,用戶端會指定瀏覽器到此 URL,及叫用指令碼指令等等。您可以在使用者介面 (UI) 中指定將資訊聯繫至 .asx 檔案的資訊及 UI 的項目資訊,或在 UI 的影音區域中聯繫橫幅。例如:
<ASX Version = "3.0">
<Entry>
<Title>Click Through Test</Title>
<Copyright>none</Copyright>
<Ref href = "mms://svr1/welcome1.asf" <//>
<MoreInfo href = "http://www.microsoft.com" <//>
</Entry>
</ASX>
<ASX Version = "3.0"> <Entry> <Title>Click Through Test</Title> <Copyright>none</Copyright> <Ref href = "mms://svr1/welcome1.asf" <//> <MoreInfo href = "http://www.microsoft.com" <//> </Entry> </ASX>
如果你机器上安装有MS的媒体播放器还可以浏览网上的图片
<asx version="3.0">
<copyright>Copyright (c) 2005 wgscd.</copyright>‘版权信息
<entry><ref href="http://www.asiacool.com/katong/girl02/yule_big_pic/019.jpg" />’文件地址
<duration value="0:04" />’显示的时间
</entry>
<entry><ref href="http://www.asiacool.com/katong/girl02/yule_big_pic/044.jpg" />
<duration value="0:04" />
</entry>
<entry><ref href="http://www.asiacool.com/katong/girl02/yule_big_pic/022.jpg" />
<duration value="0:04" />
</entry>
<entry>
<ref href="d:/1.jpg" />
<duration value="0:04" />‘显示的时间
<entry><ref href="http://www.asiacool.com/katong/girl02/yule_big_pic/042.jpg" />
<duration value="0:04" />
</entry>
<entry><ref href="http://www.asiacool.com/katong/girl02/yule_big_pic/120.jpg" />
<duration value="0:04" />
<entry><ref href="http://www.asiacool.com/katong/girl02/yule_big_pic/122.jpg" /></entry></entry>
</asx>
具体请参照:http://support.microsoft.com/default.aspx?scid=kb;zh-tw;247355
关于ASX格式内容MS还有没公开的参数,我在网上看到了有人用过许多有用的参数 -_- !