本文將告訴您,Windows Media Player 中 .asx 檔的內容。
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>
在上述範例中,Windows Media Player 播放所參照的全部四種 .asf 檔
ASX/Copyright
文字代表 .asf 檔或輸入項目的著作權資訊。此資訊由用戶端顯示在詳細資料窗格中。例如:
<Copyright>Copyright?1997, AudioSVR?Inc.</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>
在上述範例中,已按下播放程式中顯示區域的標題與著作權,而 URL 已傳送到預設瀏覽器。
如果
<ASX Version = "3.0">
<Title>Show</Title>
<MoreInfo href = "http://www.microsoft.com" <//> <Entry>
<Ref href = "mms://svr1/welcome1.asf" <//>
</Entry>
</ASX>
在上述範例中,已按下播放程式中顯示區域上
[顯示] 的 URL (http://www.microsoft.com)。
您也可以使用
<ASX Version = "3.0">
<Entry> <Ref href = "mms://svr1/welcome1.asf" <//>
<BANNER HREF="http://svr2/banner.jpg">
<moreinfo href="http://www.microsoft.com" <//>
</BANNER>
</Entry>
</ASX>
注意: 使用方式
ASX/Title
文字代表 .asx 檔或輸入項目的標題, 用戶端會在標題列中顯示此標題。例如:
<Title>AudioSVR?Top 10 Rock Stations</Title>
如果 Windows Media Player 顯示區域中的
[顯示] 欄位,或者 如果 Windows Media Player 顯示區域中的
[標題] 欄位。例如:
<ASX Version = "3.0" >
<Title>My Favorite Songs</Title>
<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>
在上述範例中,標題會顯示在 Windows Media Player 顯示區域的
[顯示] 欄位中。
<ASX Version = "3.0" >
<Title>My Favorite Songs</Title>
<Entry>
<Ref href = "http://server/song1.asf" <//>
<Title>Song 1</Title>
</Entry>
<Entry>
<Ref href = "http://server/song2.asf" <//>
<Title>Song 2</Title>
</Entry>
<Entry>
<Ref href = "http://server/song3.asf" <//>
<Title>Song 3</Title>
</Entry>
<Entry>
<Ref href = "http://server/song4.asf" <//>
<Title>Song 4</Title>
</Entry>
</ASX>
在上述範例中,「我的最愛」會顯示在
[顯示] 欄位,而文字會顯示在
[標題] 欄位中。
ASX/Banner
指定用來做為使用者橫幅列中橫幅影像的 URL。您可以選擇讓橫幅有個相關的摘要以及按選功能。橫幅長寬為 32h x 194w。例如:
<banner href = http://server/dir/graphic.gif >
<moreinfo href = "http://www.microsoft.com" <//>
</banner>
所參照的影像
ASX/Entry
輸入項目是 .asx 檔中的基本建構。此項目及其相關的屬性與辨識符號會定義有關單一邏輯內容的用戶端中繼資訊
(Meta-information)。例如:
<ASX Version = "3.0" >
<Entry>
<Ref href = "http://backup/wrck.nsc" <//>
</Entry>
</ASX>
ASX/EntryRef
在外部 .asx 檔找到輸入內容時,就可以使用 EntryRef 項目。此項目為 .asx 檔參照到 .asx
檔目前位置的概括性文字內容。例如:
<ASX Version = "3.0" >
<Title>WRCK on AudioSVR?/title>
<EntryRef href = "http://server/wrck.asx"" <//>
</ASX>
ASX/Ref
指定 URL 參照到 .asf 檔 (依要求的內容) 或 .nsc 檔 (即時內容)。目前在 Microsoft NetShow
3.0 中,ASX 參照索引標籤可支援 .nsc 檔的參照。這讓依照要求內容使用相同方式的用戶端可以進入通道。當用戶端看見通道 (.nsc)
的參照時,便會試圖多點傳送或單點傳送連線到通道的內容,依 .nsc 檔所設定。如果連至通道的所有連線都失敗了,用戶端就會直接移往清單中的下一個參照
(如果有的話)。例如:
<ASX Version = "3.0" >
<Entry>
<Ref href = "http://backup/wrck.nsc" <//>
</Entry>
</ASX>
瀏覽器 URL Flip
Windows 媒體資料流可能包含內嵌在資料流格式中指向 URL 的參照。當 Windows Media Player 收到
URL 指令時,就會將 URL 傳送至預設瀏覽器,好讓瀏覽器顯示所參照的 URL。
當 Windows Media Player
內嵌在網頁時,URL Flip 可以在網頁中做為指定的框架。當特定框架以 URL Flip 為目標時,內嵌於資料流中的 URL 包含兩個
http://www.microsoft.com&&targetframe
在上述範例中,在名為 targetframe 的 HTML 網頁中,框架將以 URL www.microsoft.com 為目標。
在此情形下,Windows Media Player for Macintosh 會忽略一切
橫幅列
當您在 .asx 檔中指定橫幅時,參照圖片會顯示在影音窗格下、顯示區域上的橫幅列。橫幅長寬為 32h x 194w。
Windows Media Player 中的橫幅列區域應為 36h x 200w。