Class ChannelManager : getChannels Method
Array of Channel objects getChannels() |
Summary
Get a list of all channels in the system
Examples
The code below hooks into the DG startup system. When DG starts it will list out all of the programmes on "now".function onNowTest() { var chman = app.getChannelManager(); var arrChannels = chman.getChannels(); for( var n = 0; n < arrChannels.length; n++ ) { var ch = arrChannels[ n ]; var arrProgs = ch.getProgrammes( new Date, new Date); if( arrProgs.length > 0 ) { debugOut( arrProgs[ 0 ].name + ", " + arrProgs[ 0 ].startDate + ", " + arrProgs[ 0 ].lastUpdated ); } } }
app.addEventHandler( "onDigiGuideStartupComplete", onNowTest );
|
See Also
Channel
Requirements
1116
|