Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function GetChannels(Lineup) {
var Channel = [];
var Channels = [];
for (i = 0; i < ChannelAPI.GetAllChannels().length; i++) {
DiscoveredChannel = ChannelAPI.GetAllChannels()[i];
var Channel = [];
Channel["StationID"] = DiscoveredChannel.getStationID();
Channel["Number"] = DiscoveredChannel.getNumber();
Channel["Name"] = DiscoveredChannel.getFullName();
Channel["Physical"] = ChannelAPI.GetPhysicalChannelNumberForLineup(DiscoveredChannel, Lineup);
Channel["Viewable"] = DiscoveredChannel.isViewable();
Channels.push(Channel);
}
return Channels;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.