Page 1 of 1

How to get detailed info about selected channel

Posted: Sun Nov 19, 2006 9:58 am
by Betatester
Hello,

I'm trying to do some small module that would be very useful for me ;) I've go two problems:

1) Is there any way to select channel from channel list so DVB Dream won't switch to it (just select channel without switching)
2) By SDK I can get all information about channel that is visible in Channel Properties window? Or some channel informations are not available (which)?

Re: How to get detailed info about selected channel

Posted: Sat Nov 25, 2006 12:37 pm
by rel
hi,

1) Is there any way to select channel from channel list so DVB Dream won't switch to it (just select channel without switching)
there is no way. but I can help in next version if you really need that.
2) By SDK I can get all information about channel that is visible in Channel Properties window? Or some channel informations are not available (which)?
yes, you can get channel id and access to CHL structure to reach all the channel information.

Posted: Sat Nov 25, 2006 3:36 pm
by Betatester
Hi ;)

I had already solved first problem - channel can be selected without switching to it, when in DVB Dream options will be selected "Use double click to change channel" ;) That was so easy - shame on me :oops:
I don't know only will SDK give me ID of selected channel, or tuned channel (I'm afraid after information from X05 that only for tuned, but I'll check it to be sure ;) )

I don't know how hard it will be to make ID available also for selected (not only tuned) channel. That would be very cool, but if it need a lot of work and a lot of changes in DVB Dream it can wait - I know that You have a lot of work with other things in DVB Dream and I don't want to bother You :oops: :wink:

I have also related question - why when "Use double click to change channel" is selected when changing channel whole list is scrolling to other position? When changing channel with one click channel list acting normally...

I'll made some testings in this and next weekend (I have more free time at weekends ;) ) - I'm trying to do some small addon for DX-ers ;)

Thanks for answer ;)

Posted: Sun Nov 26, 2006 12:29 am
by rel
sorry, my bad, there was already an API function in current SDK

DDMODAPI_SELECT_CHANNEL_BY_CHID


I will check "double click" mode, and also will try to add an API function to get "selected" channel's ID.

Posted: Wed Nov 29, 2006 12:35 am
by Rockin' Rick
I use double click mode for that very reason.

However, if you make changes to the channel properties DD will tune to the channel when you click OK.

Posted: Wed Nov 29, 2006 3:38 pm
by rel
added new API function to v1.3b

DDMODAPI_GET_SELECTED_CHID
LParam = pointer to integer (channel ID)

this function might return -1 (in the integer pointed in LParam) if there is no channel selected


However, if you make changes to the channel properties DD will tune to the channel when you click OK.
fixed in v1.3b.

Posted: Thu Nov 30, 2006 6:22 pm
by Betatester
Thank You very much :D

Posted: Mon May 28, 2007 4:26 am
by dvbsnewbie
Hi rel !
Does SDK support switch LNB on "Hauppauge WinTV HVR 4000" card ? I cannot scan signal from a LNB if the selected LNB is another. How to switch LNB by DVBDream ? I see TransEdit can switch LNB with my card.