- 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.get
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) inputs :Array.<stbDvbInput>
Get array of all available stbDvbInput instances in the system.
Type:
- Array.<stbDvbInput>
Example
// get input #0 instance
// and turn on antenna power
stbDvbManager.inputs[0].antennaPower = true;
(static, readonly) tuners :Array.<stbDvbTuner>
Get array of all available stbDvbTuner instances in the system.
Type:
- Array.<stbDvbTuner>
Example
// get tuner #0 instance and tune
stbDvbManager.tuners[0].tune(config);
(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(id);
// 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: Available operations:
For example: ['lt', 'channelNumber', 123] - any channel with LCN less then 123 |
|||||||||||||||||||||
channelList |
stbDvbChannelList |
<optional> |
stbDvbManager.channelList
|
channel list to filter from |
Returns:
data
- Type
- stbDvbChannelList
(static) loadChannel(channel) → {boolean}
Preload the given channel.
Parameters:
Name | Type | Description |
---|---|---|
channel |
string | Object | channel id or channel meta data |
Returns:
operation status
- Type
- boolean
(static) unloadChannel(channel) → {boolean}
Remove loader for the given channel.
Parameters:
Name | Type | Description |
---|---|---|
channel |
string | Object | channel id or channel meta data |
Returns:
operation status
- Type
- boolean
(static) unloadAllChannels() → {boolean}
Remove all loaders.
Returns:
operation status
- Type
- boolean