xtreamgate.cc is an XtreamGate support site. Official service at xtreamgate.com
Skip to content
All articles

Check the First Line of a WebVTT File

A WebVTT file starts with its format signature. Read the actual first line of the served source when every cue in a controlled fixture is missing. A caption-looking text block alone does not establish the source is a valid WebVTT file.

Make the check

Open a copy of your caption source in a text editor and preserve the original. Inspect the first visible line and the lines before the first cue. Compare with a minimal known fixture that starts with WEBVTT, then a blank separator before an ordinary cue.

Worked example

An original resource begins with “Caption notes for Clip A” and later has a correctly shaped timing line. Another starts with WEBVTT followed by a blank line and the identical cue. The first file’s misplaced introductory line is separate from the cue’s timing.

What to record

Record the actual first line and format declared by the resource. If the signature is correct in your source editor but different in the network response, resolve that evidence gap before adjusting cue text.

Reference

W3C WebVTT specification defines the file signature, a permitted optional UTF-8 byte-order mark, and separation before the first cue.