Class: VideoMjpeg

OSH.DataReceiver.VideoMjpeg

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

Constructor

new VideoMjpeg()

Source:

Methods

parseData($super, data) → {Blob}

Extract data from the message. Creates a Blob object starting at byte 12. (after the 64 bits of the timestamp).

Parameters:
Name Type Description
$super function

the parseData super method

data ArrayBuffer

the data to parse

Source:
Returns:

the parsed data

Type
Blob

parseTimeStamp($super, data) → {number}

Extracts timestamp from the message. The timestamp is corresponding to the first 64 bits 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