- Since:
- v344
- 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) state :number
Current state of this tunner.
Value | Description |
---|---|
0 | idle |
1 | scan in progress |
Type:
- number
(static, readonly) signalLevel :number
Signal level [0..100].
Type:
- number
(static, readonly) signalQuality :number
Signal quality [0..100].
Type:
- number
(static, readonly) supportedScanTypes :Array.<stbDvbInput~dvbSignalType>
Get supported scan types for this tunner.
Type:
- Array.<stbDvbInput~dvbSignalType>
Example
[1, 2, 3]
(static, readonly) currentScanTypes :Array.<stbDvbInput~dvbSignalType>
Get currently supported scan types for this tunner.
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) bitErrorRate :number
Get Bit Error Rate.
(Bit Error Rate) * 10^7
Type:
- number
Methods
(static) setSignalType(type) → {boolean}
Set current scan type for this STB.
Example
stbDvbManager.list[0].setSignalType(1);
Parameters:
Name | Type | Description |
---|---|---|
type |
stbDvbInput~dvbSignalType | DVB signal type |
Returns:
operation status
- Type
- boolean
(static) startScan(config) → {boolean}
Start channel scanning.
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) tune(config) → {boolean}
Tune receiver to specified frequency.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | tune configuration object Properties
|
Returns:
operation status
- Type
- boolean
(static) untune() → {boolean}
Untune receiver from frequency.
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: 'searching',
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
dvbSignalType
DVB signal type.
Value | Description |
---|---|
1 | DVB-C signal |
2 | DVB-T signal |
3 | DVB-T2 signal (not available for MAG270) |
4 | DVB-S/DVB-S2 signal |
Type:
- number