Constructor
new SosGetResultAudio(name, properties)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name | String | the datasource name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| properties | Object | the datasource properties Properties
 | 
Example
import SosGetResultAudio from 'core/datasource/SosGetResultAudio.js';
var videoDataSource = new SosGetResultAudio("AAC audio", {
        protocol: "ws",
        service: "SOS",
        endpointUrl: "sensiasoft.net:8181/sensorhub/sos",
        offeringID: "urn:android:device:dd90fceba7fd5b47-sos",
        observedProperty: "http://sensorml.com/ont/swe/property/AudioFrame",
        startTime: "2021-03-24T09:56:00Z",
        endTime: "now",
        replaySpeed: 1,
        bufferingTime: 10
  });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: