Class: VideoH264

OSH.DataReceiver.VideoH264

This datasource provides parsing to H264 raw data.
Data: ArrayBuffer

Constructor

new VideoH264()

Source:

Methods

parseData($super, data) → {Uint8Array}

Extract data from the message. The H264 NAL unit starts at offset 12 after 8-bytes time stamp and 4-bytes frame length.

Parameters:
Name Type Description
$super function

the parseData super method

data ArrayBuffer

the data to parse

Source:
Returns:

the parsed data

Type
Uint8Array

parseTimeStamp($super, data) → {number}

Extracts timestamp from the message. The timestamp is corresponding to the first 64bits of the binary message.

Parameters:
Name Type Description
$super function

the parseTimeStamp super method

data ArrayBuffer

the data to parse

Source:
Returns:

the extracted timestamp

Type
number