stbDvbManager

stbDvbManager

Since:
  • v342
Tutorials:

Main object to manage DVB-C/T/T2/S/S2 subsystem only for devices that support it.

To start playback of DVB channel player should be started with the URI provided by stbDvbChannelList.getChannel for some channel list instance.

Current DVB type is set via dvb_type bootloader environment variable with the following values:

  • DVB-C
  • DVB-T
  • DVB-T2
  • DVB-S
  • DVB-S2

Members

(static, readonly) list :Array.<stbDvbInput>

Get array of all available stbDvbInput instances in the system.

Type:
Example
// get tuner #0 instance
// and turn on antenna power
stbDvbManager.list[0].antennaPower = true;

(static) primaryLanguage :string

See:

Primary language to be automatically used for DVB subsystem.

It's a 2/3–symbol tags according to ISO 639 (for example, "ru", "rus", "en", "eng").

If not found the stbDvbManager.secondaryLanguage is selected.

Type:
  • string

(static) secondaryLanguage :string

See:

Secondary language to be automatically used for DVB subsystem.

It's a 2/3–symbol tags according to ISO 639 (for example, "ru", "rus", "en", "eng").

Type:
  • string

(static) channelList :stbDvbChannelList

Root list of all available channels from all inputs.

Type:

Methods

(static) createChannelList(filteropt, channelListopt) → {stbDvbChannelList}

Make a new channel list as a subset of parent list.

In case there are no filter and parent an empty channel list is created.

Examples
// new empty list
var channelList = stbDvbManager.createChannelList();
// now it's possible to fill it with some channels
channelList.add(ccid);
// filter root channelList
var channelList = stbDvbManager.createChannelList(['sw', 'name', 'BBC']);
Parameters:
Name Type Attributes Default Description
filter Array <optional>

filtering rules in the following format:

signature: [operation, fieldName, value]

Available operations:

Value Description
lt less then
le less or equal
gt greater then
ge greater or equal
eq equal
sw starts with
ew ends with
ct contains
not negation

For example:

['lt', 'channelNumber', 123] - any channel with LCN less then 123
[not, ['eq', 'name', '1+1']] - any channel with name not equal '1+1'

channelList stbDvbChannelList <optional>
stbDvbManager.channelList

channel list to filter from

Returns:

data

Type
stbDvbChannelList