Using ActionScript 3.0 Components |
|
|
|
| Using the FLVPlayback Captioning Component > Using cue points with captioning > Understanding how to create captioning for event embedded cue points | |||
If you do not have a Timed Text XML file that contains captions for your FLV file, you can create captioning by associated an XML file that contains captioning with event embedded cue points. The XML sample assumes you have performed the following steps to create event embedded cue points in your video:
The following sample imports XML into the encoder.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><FLVCoreCuePoints>
<CuePoint><Time>9136</Time><Type>event</Type><Name>fl.video.caption.2.0.index1</Name><Parameters><Parameter><Name>text</Name><Value><![CDATA[Captioning text for the first cue point]]></Value></Parameter></Parameters></CuePoint><CuePoint><Time>19327</Time><Type>event</Type><Name>fl.video.caption.2.0.index2</Name><Parameters><Parameter><Name>text</Name><Value><![CDATA[Captioning text for the second cue point]]></Value></Parameter></Parameters></CuePoint><CuePoint><Time>24247</Time><Type>event</Type><Name>fl.video.caption.2.0.index3</Name><Parameters><Parameter><Name>text</Name><Value><![CDATA[Captioning text for the third cue point]]></Value></Parameter></Parameters></CuePoint>
<CuePoint><Time>36546</Time><Type>event</Type><Name>fl.video.caption.2.0.index4</Name><Parameters><Parameter><Name>text</Name><Value><![CDATA[Captioning text for the fourth cue point]]></Value></Parameter></Parameters>
</CuePoint>
</FLVCoreCuePoints>
The FLVPlaybackCaptioning component also supports multiple language tracks with embedded cue point. For more information, see Supporting multiple language tracks with embedded cue points.
|
|
|
|