Skip to content

Function: writeUrn() ​

ts
function writeUrn(cursor, box): void;

Defined in: writers/writeUrn.ts:22

Write the urn box (DataEntryUrnBox).

ISO/IEC 14496-12:2015 - 8.7.2

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

DataEntryUrnBox

The DataEntryUrnBox fields to write

Returns ​

void

Throws ​

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

Example ​

ts
const writer = writeIsoBox(
	{
		type: 'urn ',
		version: 0,
		flags: 0,
		name: 'urn:a',
		location: 'a.mp4',
	},
	{ writers: { urn: writeUrn } },
)

A Streaming Video Technology Alliance project.