AbstractDvbService
On this page
- AbstractDvbService ⇐
Abstract- AbstractDvbService()
- getGroupId() ⇒
* - getTunerIds() ⇒
Promise.<Array.<String>> - getCurrentTuner() ⇒
Promise.<String> - setCurrentTuner(tunerId) ⇒
Promise.<String> - getState([tunerId]) ⇒
Promise.<number> - setState(state, [tunerId]) ⇒
Promise.<number> - getSignalInfo([tunerId]) ⇒
Promise.<SignalInfo> - getName([tunerId]) ⇒
Promise.<String> - _onDvbCurrentTunerChange(tunerId) ⇒
Promise - _onDvbStateChange(state) ⇒
Promise - “dvbCurrentTunerChange” (tunerId)
- “dvbStateChange” (state)
- STATE_DISABLE :
number - STATE_ENABLE :
number
AbstractDvbService ⇐ Abstract
Kind: global abstract class
Extends: Abstract
Mixes: MServiceCache
Service:
- AbstractDvbService ⇐
Abstract- new AbstractDvbService()
- instance
- .getGroupId() ⇒
* - .getTunerIds() ⇒
Promise.<Array.<String>> - .getCurrentTuner() ⇒
Promise.<String> - .setCurrentTuner(tunerId) ⇒
Promise.<String> - .getState([tunerId]) ⇒
Promise.<number> - .setState(state, [tunerId]) ⇒
Promise.<number> - .getSignalInfo([tunerId]) ⇒
Promise.<SignalInfo> - .getName([tunerId]) ⇒
Promise.<String> - ._onDvbCurrentTunerChange(tunerId) ⇒
Promise - ._onDvbStateChange(state) ⇒
Promise - “dvbCurrentTunerChange” (tunerId)
- “dvbStateChange” (state)
- .getGroupId() ⇒
- static
- .STATE_DISABLE :
number - .STATE_ENABLE :
number
- .STATE_DISABLE :
AbstractDvbService()
This class represents the service that handles the tuners. /!\ THERE IS NO CACHE FOR THIS SERVICE /!\
getGroupId() ⇒ *
Get the dvb group Id
Kind: instance method of AbstractDvbService
getTunerIds() ⇒ Promise.<Array.<String>>
Get a collection of Tuner id’s representing the physical tuners available.
Kind: instance method of AbstractDvbService
Returns: Promise.<Array.<String>> - This collection of Tuner id’s
getCurrentTuner() ⇒ Promise.<String>
Get current tuner’s id.
Kind: instance method of AbstractDvbService
Returns: Promise.<String> - Current tuner’s id
setCurrentTuner(tunerId) ⇒ Promise.<String>
Set current tuner.
Kind: instance method of AbstractDvbService
Emits: dvbCurrentTunerChange
| Param | Type |
|---|---|
| tunerId | string |
getState([tunerId]) ⇒ Promise.<number>
Get tuner current state (STATE_ENABLE or STATE_DISABLE).
Kind: instance method of AbstractDvbService
Returns: Promise.<number> - Tuner state STATE_ENABLE or STATE_DISABLE
| Param | Type | Description |
|---|---|---|
| [tunerId] | string | Id of tuner(by default, current tuner). |
setState(state, [tunerId]) ⇒ Promise.<number>
Set tuner state (STATE_ENABLE or STATE_DISABLE).
Kind: instance method of AbstractDvbService
Emits: dvbCurrentTunerChange
| Param | Type | Description |
|---|---|---|
| state | number | Tuner state STATE_ENABLE or STATE_DISABLE (integer) |
| [tunerId] | string | Id of tuner(by default, current tuner). |
getSignalInfo([tunerId]) ⇒ Promise.<SignalInfo>
Get details on the signal strength of the tuner.
Kind: instance method of AbstractDvbService
Returns: Promise.<SignalInfo> - Signal detail info.
| Param | Type | Description |
|---|---|---|
| [tunerId] | string | Id of tuner(by default, current tuner). |
getName([tunerId]) ⇒ Promise.<String>
Get the tuner’s name.
Kind: instance method of AbstractDvbService
Returns: Promise.<String> - Tuner’s name.
| Param | Type | Description |
|---|---|---|
| [tunerId] | string | Id of tuner(by default, current tuner). |
_onDvbCurrentTunerChange(tunerId) ⇒ Promise
Fired when the dvb current tuner has been changed
Kind: instance method of AbstractDvbService
Access: protected
| Param | Type | Description |
|---|---|---|
| tunerId | string | The new current tuner id |
_onDvbStateChange(state) ⇒ Promise
Fired when the dvb tuner state has been changed
Kind: instance method of AbstractDvbService
Access: protected
| Param | Type | Description |
|---|---|---|
| state | string | The new state of tuner |
“dvbCurrentTunerChange” (tunerId)
Fired when the dvb current tuner has been changed
Kind: event emitted by AbstractDvbService
| Param | Type | Description |
|---|---|---|
| tunerId | string | The new current tuner id |
“dvbStateChange” (state)
Fired when the dvb tuner state has been changed
Kind: event emitted by AbstractDvbService
| Param | Type | Description |
|---|---|---|
| state | string | The new state of tuner |
STATE_DISABLE : number
Kind: static constant of AbstractDvbService
STATE_ENABLE : number
Kind: static constant of AbstractDvbService