vidstack
Version:
Build awesome media experiences on the web.
2 lines (1 loc) • 1.13 kB
JavaScript
import{P as a,a as t}from"./index.js";const o={p(){return new a({code:t.BadSignature,reason:"missing WEBVTT file header",line:1})},q(n,e){return new a({code:t.BadTimestamp,reason:`cue start timestamp \`${n}\` is invalid on line ${e}`,line:e})},r(n,e){return new a({code:t.BadTimestamp,reason:`cue end timestamp \`${n}\` is invalid on line ${e}`,line:e})},s(n,e,r){return new a({code:t.BadTimestamp,reason:`cue end timestamp \`${e}\` is greater than start \`${n}\` on line ${r}`,line:r})},w(n,e,r){return new a({code:t.BadSettingValue,reason:`invalid value for cue setting \`${n}\` on line ${r} (value: ${e})`,line:r})},v(n,e,r){return new a({code:t.UnknownSetting,reason:`unknown cue setting \`${n}\` on line ${r} (value: ${e})`,line:r})},u(n,e,r){return new a({code:t.BadSettingValue,reason:`invalid value for region setting \`${n}\` on line ${r} (value: ${e})`,line:r})},t(n,e,r){return new a({code:t.UnknownSetting,reason:`unknown region setting \`${n}\` on line ${r} (value: ${e})`,line:r})},T(n,e){return new a({code:t.BadFormat,reason:`format missing for \`${n}\` block on line ${e}`,line:e})}};export{o as ParseErrorBuilder};