FLVPlaybackCaptioning 組件會下載 Timed Text (TT) XML 檔,為相關的 FLVPlayback 組件啟用註解功能。如需有關 Timed Text 格式的詳細資訊,請參閱
www.w3.org
上的音效視訊 Timed Text 資訊。
本節概要說明支援的 Timed Text 標籤 (必要的註解功能檔標籤) 並提供一個 Timed Text XML 檔的範例。如需有關所有支援之 Timed Text 標籤的詳細資訊,請參閱
Timed Text 標籤
。
FLVPlaybackCaptioning 組件支援下列 Timed Text 標籤:
類別
|
工作
|
段落格式支援
|
將段落靠右、靠左或置中對齊
|
文字格式支援
|
|
其它格式支援
|
|
FLVPlaybackCaptioning 組件符合 FLV 檔的時間碼。每個註解都必須具有一個
begin
特質,用來決定註解應該出現的時間。如果註解沒有
dur
或
end
特質,當下一個註解出現或 FLV 檔結束時,註解就會消失。
下列為 Timed Text XML 檔的範例。這個檔案 (caption_video.xml) 將為 caption_video.flv 檔案提供註解功能。您可以在
www.helpexamples.com/flash/video/caption_video.flv
和
www.helpexamples.com/flash/video/caption_video.xml
找到這些檔案。
<?xml version="1.0" encoding="UTF-8"?>
<tt xml:lang="en" xmlns="http://www.w3.org/2006/04/ttaf1"xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling">
<head>
<styling>
<style id="1" tts:textAlign="right"/>
<style id="2" tts:color="transparent"/>
<style id="3" style="2" tts:backgroundColor="white"/>
<style id="4" style="2 3" tts:fontSize="20"/>
</styling>
</head>
<body>
<div xml:lang="en">
<p begin="00:00:00.00" dur="00:00:03.07">I had just joined <span tts:fontFamily="monospaceSansSerif,proportionalSerif,TheOther"tts:fontSize="+2">Macromedia</span> in 1996,</p>
<p begin="00:00:03.07" dur="00:00:03.35">and we were trying to figure out what to do about the internet.</p>
<p begin="00:00:06.42" dur="00:00:03.15">And the company was in dire straights at the time.</p>
<p begin="00:00:09.57" dur="00:00:01.45">We were a CD-ROM authoring company,</p>
<p begin="00:00:11.42" dur="00:00:02.00">and the CD-ROM business was going away.</p>
<p begin="00:00:13.57" dur="00:00:02.50">One of the technologies I remember seeing was Flash.</p>
<p begin="00:00:16.47" dur="00:00:02.00">At the time, it was called <span tts:fontWeight="bold" tts:color="#ccc333">FutureSplash</span>.</p>
<p begin="00:00:18.50" dur="00:00:01.20">So this is where Flash got its start.</p>
<p begin="00:00:20.10" dur="00:00:03.00">This is smart sketch running on the <span tts:fontStyle="italic">EU-pin computer</span>,</p>
<p begin="00:00:23.52" dur="00:00:02.00">which was the first product that FutureWave did.</p>
<p begin="00:00:25.52" dur="00:00:02.00">So our vision for this product was to</p>
<p begin="00:00:27.52" dur="00:00:01.10">make drawing on the computer</p>
<p begin="00:00:29.02" dur="00:00:01.30" style="1">as <span tts:color="#ccc333">easy</span> as drawing on paper.</p>
</div>
</body>
</tt>