Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Get the channel ID of the current tuned channel.
DOm wrote:
>
> Hi,
>
> how can i ask to VDR to tell me the channel ID of the current channel
> for a given device ?
>
> If i want the channel number i do something like that:
>
> cDevice::PrimaryDevice()->CurrentChannel();
>
> How to have the channel ID ??
cChannel Channel = Channels.GetByNumber(cDevice::PrimaryDevice()->CurrentChannel());
if (Channel) {
tChannelID ChannelID = Channel->GetChannelID();
// do something with ChannelID...
}
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index