Skip to content

Function: writeElng() ​

ts
function writeElng(cursor, box): void;

Defined in: writers/writeElng.ts:22

Write the elng box (ExtendedLanguageBox).

ISO/IEC 14496-12:2015 - 8.4.6

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

ExtendedLanguageBox

The ExtendedLanguageBox fields to write

Returns ​

void

Throws ​

RangeError if a value of the box does not fit its field.

Example ​

ts
const box: ExtendedLanguageBox = {
	type: 'elng',
	version: 0,
	flags: 0,
	extendedLanguage: 'en-US',
}

const writer = writeIsoBox(box, { writers: { elng: writeElng } })

A Streaming Video Technology Alliance project.