Skip to content

Type Alias: TrackEncryptionBox ​

ts
type TrackEncryptionBox = FullBox & object;

Defined in: boxes/TrackEncryptionBox.ts:10

Track Encryption Box (tenc).

ISO/IEC 23001-7:2016 - 8.2

Type Declaration ​

defaultConstantIv? ​

ts
defaultConstantIv?: Uint8Array;

default_constant_IV. readTenc sets the field when default_isProtected is 1, defaultPerSampleIvSize is 0, and the box has the size byte. writeTenc writes the length of the array as default_constant_IV_size, then the bytes. The limit is 255 bytes.

defaultCryptByteBlock? ​

ts
defaultCryptByteBlock?: number;

default_crypt_byte_block, from 0 to 15. readTenc sets the field for a box of version 1 or above. writeTenc writes the field to a box of version 1 or above. With no field, writeTenc writes 0.

defaultIsProtected ​

ts
defaultIsProtected: number;

default_isProtected: 1 for a protected track, 0 for a track that is not protected.

defaultKid ​

ts
defaultKid: Uint8Array;

default_KID: the default key ID, 16 bytes. The reader returns a view of the input.

defaultPerSampleIvSize ​

ts
defaultPerSampleIvSize: number;

default_Per_Sample_IV_Size

defaultSkipByteBlock? ​

ts
defaultSkipByteBlock?: number;

default_skip_byte_block, from 0 to 15. readTenc sets the field for a box of version 1 or above. writeTenc writes the field to a box of version 1 or above. With no field, writeTenc writes 0.

type ​

ts
type: "tenc";

A Streaming Video Technology Alliance project.