- Since:
- v343
- Tutorials:
Main object to manage DVB-C/T/T2 subsystem.
Not accessible in global scope.
Can't be manually created but can be received from other STB global objects.
Members
(static) antennaPower :boolean
- Default Value:
- false
Manual control of antenna power state.
Used to supply power to active antenna.
Triggers stbDvbInput.onAntennaPower hook.
In case when connected antenna is not active a legacy event 33 (0x2B)
will be triggered and antenna power will be disabled.
Type:
- boolean
(static, readonly) capabilities :stbDvbInput~capabilitiesConfig
Get run-time input capabilities.
Type:
Example
// output input antennaPower support
console.log(stbDvbManager.inputs[0].capabilities.antennaPower);
(static, readonly) TYPE_DVB_C :number
Type:
- number
(static, readonly) TYPE_DVB_T :number
Type:
- number
(static, readonly) TYPE_DVB_T2 :number
not available for MAG270
Type:
- number
(static, readonly) TYPE_DVB_S :number
Type:
- number
(static, readonly) TYPE_DVB_S2 :number
Type:
- number
(static, readonly) supportedScanTypes :Array.<stbDvbInput~dvbSignalType>
Get supported scan types for this input.
Type:
- Array.<stbDvbInput~dvbSignalType>
Example
[1, 2, 3]
(static, readonly) currentScanTypes :Array.<stbDvbInput~dvbSignalType>
Get currently supported scan types for this input.
The difference with stbDvbInput.supportedScanTypes is:
result of stbDvbInput.currentScanTypes depends on current DVB type
e.i. for MAG275 it can be either DVB-C or DVB-T and DVB-T2, for MAG356 it can be DVB-S2.
Type:
- Array.<stbDvbInput~dvbSignalType>
Example
[2, 3]
(static, readonly) STATE_START :number
Type:
- number
(static, readonly) STATE_STOP :number
Type:
- number
(static, readonly) STATE_ERROR :number
Type:
- number
Methods
(static) setSignalType(type) → {boolean}
Set current scan type for this input.
On some devices may require reboot to apply this config.
To determine if reboot is required please check flag requireReboot in stbDvbInput.capabilities.
Example
var input = stbDvbManager.inputs[0];
input.setSignalType(input.TYPE_DVB_C);
Parameters:
| Name | Type | Description |
|---|---|---|
type |
stbDvbInput~dvbSignalType | DVB signal type |
Returns:
operation status
- Type
- boolean
(static) startScan(config) → {boolean}
Start channel scanning.
Warning: some options can be unsupported on some devices (see scanOptions in stbDvbInput.capabilities).
During scan 2 events can be triggered.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | scan configuration object Properties
|
Returns:
operation status
- Type
- boolean
(static) stopScan() → {boolean}
Stop channel scan.
Returns:
operation status
- Type
- boolean
(static) onScanProgress(data)
- See:
-
stbEvent.onEvent(event 40)
DVB channels scanning is in progress (when scan starts to search new frequency).
Example
{
state: 0,
channel: 12,
frequency: 226500,
progress: 12,
polarization: 'H'
}
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object | event info Properties
|
(static) onChannelFound(data)
- See:
-
stbEvent.onEvent(event 41)
DVB channel is found.
Example
{
id: 'T2_41_490000',
name: 'some channel name',
frequency: 490000,
symbolRate: 0,
type: 3
}
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object | event info Properties
|
(static) onAntennaPower(status)
- See:
-
stbEvent.onEvent(event 43)
DVB antenna power status change.
Parameters:
| Name | Type | Description |
|---|---|---|
status |
boolean | power state |
Type Definitions
capabilitiesConfig
Properties:
| Name | Type | Description |
|---|---|---|
antennaPower |
boolean | indicates whether input can change antennaPower |
requireReboot |
boolean | indicates whether device should be restarted to apply some changed options |
scanOptions |
Array | supported scanning options |
Set of flags that represent what input is capable to do at the moment.
Type:
- Object
dvbSignalType
- See:
DVB signal type.
Type:
- number
scanState
- See:
DVB channels scanning state.
Type:
- number