Skip to content

Function: writeUrl() ​

ts
function writeUrl(cursor, box): void;

Defined in: writers/writeUrl.ts:24

Write the url box (DataEntryUrlBox).

The writer omits location when flag 0x000001 is set.

ISO/IEC 14496-12:2015 - 8.7.2

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

DataEntryUrlBox

The DataEntryUrlBox fields to write

Returns ​

void

Throws ​

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

Example ​

ts
const writer = writeIsoBox(
	{ type: 'url ', version: 0, flags: 1, location: '' },
	{ writers: { url: writeUrl } },
)

A Streaming Video Technology Alliance project.