Constructor
new SosGetResultVideoWithRoll(name, properties)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
String | the datasource name | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
properties |
Object | the datasource properties
Properties
|
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
|
- Overrides:
- Source: