m3u8parse
Version:
Structural parsing of Apple HTTP Live Streaming .m3u8 format
28 lines (27 loc) • 1.13 kB
JavaScript
// Updated for draft-pantos-hls-rfc8216bis-12
/** @see Spec {@link https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-16#section-4.2 Attribute Lists} */
export var Attr;
(function (Attr) {
/** Spec `decimal-integer` as `bigint` */
Attr["BigInt"] = "bigint";
/** Spec `decimal-integer` as `number` */
Attr["Int"] = "int";
/** Spec `hexadecimal-sequence` as `bigint` */
Attr["HexInt"] = "hexint";
/** Spec `hexadecimal-sequence` as `number` */
Attr["HexNo"] = "hexno";
/** Spec `enumerated-string` as `string` */
Attr["Enum"] = "enum";
/** Spec `enumerated-string-list` as `string[]` */
Attr["List"] = "list";
/** Spec `quoted-string` as `string` */
Attr["String"] = "string";
/** Spec `decimal-floating-point` as `float` */
Attr["Float"] = "float";
/** Spec `signed-decimal-floating-point` as `float` */
Attr["SignedFloat"] = "signed-float";
/** Spec `decimal-resolution` as {@link Resolution} */
Attr["Resolution"] = "resolution";
/** Inferred type as {@link Byterange} */
Attr["Byterange"] = "byterange";
})(Attr || (Attr = {}));