AbstractDvbService

AbstractDvbService ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Mixes: MServiceCache
Service:

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

ParamType
tunerIdstring

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

ParamTypeDescription
[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

ParamTypeDescription
statenumber

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.

ParamTypeDescription
[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.

ParamTypeDescription
[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

ParamTypeDescription
tunerIdstring

The new current tuner id

_onDvbStateChange(state) ⇒ Promise

Fired when the dvb tuner state has been changed

Kind: instance method of AbstractDvbService
Access: protected

ParamTypeDescription
statestring

The new state of tuner

“dvbCurrentTunerChange” (tunerId)

Fired when the dvb current tuner has been changed

Kind: event emitted by AbstractDvbService

ParamTypeDescription
tunerIdstring

The new current tuner id

“dvbStateChange” (state)

Fired when the dvb tuner state has been changed

Kind: event emitted by AbstractDvbService

ParamTypeDescription
statestring

The new state of tuner

STATE_DISABLE : number

Kind: static constant of AbstractDvbService

STATE_ENABLE : number

Kind: static constant of AbstractDvbService