You can integrate closed-captioning in a video object. The captioning text is displayed within the video according to details specified within an XML file.
Select from three supported formats:
Web Video Text Tracks (WebVTT) - Captioning format for HTML media players (Recommended)
SubRip Subtitle (SRT) - Popular standard used for YouTube and Facebook captioning
eXtensible Markup Language (XML) - Captioning format for Flash video
Examples of each format are provided below.
Additionally, you can customize the caption styling, including the font and font highlighting. The following font properties can be configured within the closed-captioning file:
Font property |
Description |
Example |
color |
A general color name or a specific hexadecimal color value. |
Red or #FFCC00 |
font-family |
An installed font. |
Arial |
font-size |
Size of the font in pixels. The default font size is 14. |
12 |
font-style |
Style of the font. The default is normal. |
italic |
font-weight |
Weight of the font. The default is normal. |
bold |
text-align | Alignment of the caption text as either left, right, or center. The default is center. | Center |
text-decoration |
Enhanced font highlighting. The default is none. |
underline |
Follow these rules when creating the captioning file:
Specify the start and end times for each caption set. Time is in the format: hours:minutes:seconds:hundredths (HH:MM:SS:hhh)
Specify the text for each caption set. Text can appear on multiple lines, if desired.
Optionally, customize the font styling using a <span> tag.
Save the file as a plain text file with the desired name and change the file extension to the appropriate captioning file format (.vtt, .srt, or .xml).
Sample files are provided to help you quickly get started creating and specifying the closed captioning file.
To specify a closed-captioning file:
Do one of the following:
In the Title Explorer, double-click the graphic of the video object.
In the Title Explorer, right-click the graphic and select Properties.
In the work area, double-click the video object.
In the work area, right-click the video object and select Properties.
On the Properties ribbon, click Add Captions in the Playback Options group. The Add Captions window opens.
For an existing captioning file, use the Caption File pull-down list to navigate and select the captioning file. Click Edit to edit the file if necessary. To view a sample format file that you can copy and paste to a text editor, click one of the three file formats under Sample caption file formats. The WebVTT format (.vtt) is recommended.
Click OK.
Examples
WebVTT (Recommended)
00:00:00.000 --> 00:00:00.000
<span style="text-align:center"></span>
00:00:08.000 --> 00:00:10.000
VTT Format: This line should appear at 8 seconds
00:00:10.500 --> 00:00:12.500
These two lines should
appear at 10.5 seconds
00:00:17.000 --> 00:00:20.000
These two lines should appear
with styling at <span style="color: #FF0000;font-weight: bold;">17 seconds</span>!
SRT
00:00:00.000 --> 00:00:00.000
|
XML
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/2006/10/ttaf1">
<div>
<p begin="00:00:00" end="00:00:00"> <span style="text-align:center"></span> <p begin="00:00:08" end="00:00:10">
XML Format: This line should appear at 8 seconds
</p> <p begin="00:00:10.5" end="00:00:12.5">
These two lines should appear at 10.5 seconds
</p> <p begin="00:00:17" end="00:00:20">
These two lines should appear
with styling at <span style="color: #FF0000;font-weight: bold;">17 seconds</span>! </p>
</div>
</tt>
© Copyright eLearning Brothers 2021