create a channel by SetId(int Nid, int Tid, int Sid, int Rid = 0)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
Today I'm wondering about the SetId from cChannels.h
As I know, I can specify a channel only by NID, TID and SID

I know vdr don't use the way, but is there an way to switch to a channel 
only by this values?

I have tried this code:
    cChannel* channel = new cChannel();
    channel->SetId(8468,12801,16406);   
    cDevice::ActualDevice()->SwitchChannel(channel,true);

If I execute this code, vdr will show me only the last still Pic of the 
old channel.

The values are from my channels.conf created with w_scan

Name 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#Name> 
Frequenz 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#Frequenz> 
Parameter 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#Parameter> 
Quelle 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#Quelle_-_Source> 
SRate 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#SRate_-_Symbolrate> 
VPID 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#VPID> 
APID 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#APID> 
TPID 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#TPID> CA 
<http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#CA_-_Conditional_access> 
SID <http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#SID> 
NID <http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#NID> 
TID <http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#TID> 
RID <http://www.vdr-wiki.de/wiki/index.php/Syntax_der_channels.conf#RID>
RTL2:578000:I0C23D12M16B8T8G4Y0:T:27500:353:354:359:0:16406:8468:12801:0

If I don't find a better way, I will parse my channels.conf for the 
SID,NID and TID
If I found the right line, then I can create a cChannel with 
cChannel-Parse(the found line);

I don't like the alternative way.
Can anybody tell me a better way?

greetings
Patrick


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux