![]() If you are using the WebVTT file for metadata these restrictions do not apply. A blank line signifies the end of a cue.Ī cue text payload cannot contain the string ->, the ampersand character ( &), or the less-than sign ( ) to avoid confusion with tags. The payload text may contain newlines but it cannot contain a blank line, which is equivalent to two consecutive newlines. In normal usage the payload contains the subtitles to be displayed. The payload is where the main information or content is located. The last line might be used for an Asian language. The third line might be used for a title. The second line might be used to overlay text on a sign or label. Text is aligned within the space given by the size cue setting if it is set. The value is a percentage, that is an integer (no decimals) between 0 and 100 inclusive followed by a percent sign (%). If vertical is set, size specifies the height of the text area. If vertical is set, position specifies where the text will appear vertically. Specifies where the text will appear horizontally. It must be an integer (i.e., no decimals) between 0 and 100 inclusive and must be followed by a percent sign (%). Positive numbers indicate top down and negative numbers indicate bottom up. The number is the height of the first line of the cue as it appears on the video. If vertical is set, line specifies where text appears horizontally. If vertical is not set, specifies where the text appears vertically. The writing direction is left to right line The writing direction is right to left lr Indicates that the text will be displayed vertically rather than horizontally, such as in some Asian languages. The settings are case sensitive so use lower case as shown. A setting's name and value are separated by a colon. ![]() There must be one or more spaces between the cue timing and the first setting and between each setting. The cue settings are added to the right of the cue timings. There can be zero or more of them, and they can be used in any order so long as each setting is used no more than once. ![]() This includes whether the text is displayed horizontally or vertically. Represents milliseconds and must be between 000 and 999, inclusive.Ĭue settings are optional components used to position where the cue payload text will be displayed over the video. Represents seconds and must be between 00 and 59, inclusive. Represents minutes and must be between 00 and 59, inclusive. Represents hours and must be at least two digits. Where the components are defined as follows: hh ![]() The timestamps must be in one of two formats: Timestamp for end time, which must be greater than the start time.If the WebVTT file is being used for chapters ( kind is chapters) then the file cannot have overlapping timings.Įach cue timing contains five components: The end time must be greater than the start time, and the start time must be greater than or equal to all previous start times. It has a start and end time which are represented by timestamps. A cue timing indicates when the cue is shown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |