Class: SosGetResultVideoWithRoll

SosGetResultVideoWithRoll(name, properties)

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

Constructor

new SosGetResultVideoWithRoll(name, properties)

Parameters:
Name Type Description
name String the datasource name
properties Object the datasource properties
Properties
Name Type Attributes Default Description
timeShift Boolean <optional>
false fix some problem with some android devices with some timestamp shift to 16 sec
bufferingTime Number 0 defines the time during the data has to be buffered. Useful only when used with DataSynchronizer
timeOut Number <optional>
0 defines the limit time before data has to be skipped. Useful only when used with DataSynchronizer
protocol String defines the protocol of the datasource. @see DataConnector
endpointUrl String the endpoint url
service String the service
offeringID String the offeringID
observedProperty String the observed property
startTime String the start time (ISO format)
endTime String the end time (ISO format)
replaySpeed Number <optional>
1 the replay factor
responseFormat Number <optional>
the response format (e.g video/mp4)
reconnectTimeout Number <optional>
10000 the time before reconnecting (in milliseconds)
customUrlParams Object <optional>
{} the encoding options
Properties
Name Type Attributes Description
video_bitrate Number <optional>
define a custom bitrate (in b/s)
video_scale Number <optional>
define a custom scale, 0.0 < value < 1.0
video_width Number <optional>
define a custom width
video_height Number <optional>
define a custom height
Source:
Example
import SosGetResultVideoWithRoll from 'core/datasource/SosGetResultVideoWithRoll.js';

var videoDataSource = new SosGetResultVideoWithRoll("H264 video ", {
        protocol: "ws",
        service: "SOS",
        endpointUrl: "sensiasoft.net:8181/sensorhub/sos",
        offeringID: "urn:android:device:a0e0eac2fea3f614-sos",
        observedProperty: "http://sensorml.com/ont/swe/property/VideoFrame",
        startTime: "2016-08-11T20:17:30.402Z",
        endTime: "2016-08-11T20:18:05.451Z",
        replaySpeed: 1,
        bufferingTime: 1000
  });

Extends

Methods

(async) connect()

Connect the dataSource then the protocol will be opened as well.
Overrides:
Source:

disconnect()

Disconnect the dataSource then the protocol will be closed as well.
Overrides:
Source:

getId() → {String}

Gets the datasource id.
Overrides:
Source:
Returns:
the datasource id
Type
String

getName() → {String}

Gets the datasource name.
Overrides:
Source:
Returns:
the datasource name
Type
String

(protected) initDataSource(properties)

Inits the datasource with the constructor properties.
Parameters:
Name Type Description
properties
Overrides:
Source:

onDisconnect()

Trigger when the datasource is disconnected for some reason.
Overrides:
Source:

updateProperties(name, properties)

Update properties
Parameters:
Name Type Description
name String the datasource name
properties Object the datasource properties
Properties
Name Type Description
timeShift Boolean fix some problem with some android devices with some timestamp shift to 16 sec
bufferingTime Number defines the time during the data has to be buffered
timeOut Number defines the limit time before data has to be skipped
protocol String defines the protocol of the datasource. @see DataConnector
endpointUrl String the endpoint url
service String the service
offeringID String the offeringID
observedProperty String the observed property
responseFormat Number the response format (e.g video/mp4)
reconnectTimeout Number the timeout before reconnecting
Overrides:
Source: