The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Alternative to Lineup.GetServiceIds to get subchannels?

Last post 01-21-2010, 11:34 AM by digital_archivist. 2 replies.
Sort Posts: Previous Next
  •  01-17-2010, 1:30 PM 9526

    Alternative to Lineup.GetServiceIds to get subchannels?

    The good news is that my WCF system to manage multiple Media Center boxes from WHS is almost finished. The bad news is a gotcha I just ran into when testing with Win 7 and QAM:

    I'm trying to build a list of mapped channels (permitting, in the absence of EPG data from within Media Center, scheduling by time and channel with dropdown lists). While this works quite nicely on my old Vista and my Win 7 Cablecard system, it's not so hot for my Win 7 QAM system; getting the mapped channels via Lineup.GetServiceIds returns only the major channel number. Indeed, in the MSDN documentation, it even states "This method does not support sub-channels. For example, if there are sub-channels such as "4.1", "4.2", and "4.3", only "4" is returned with the service ID of the last sub-channel."

    So how can I provide the user with the proper subchannel information to permiit him to create a valid Click2Record request?

  •  01-20-2010, 12:41 PM 9530 in reply to 9526

    Re: Alternative to Lineup.GetServiceIds to get subchannels?

    I suspect it won't work, but just in case: have you tried lineup.GetCallSigns()? If all you need is the serviceID, then this might return the full set rather than the one-per-channel-number set.

    Worth a try, if only because the docs for this haven't been updated to include the provisio about sub-channels not being properly supported.

    Eddy
  •  01-21-2010, 11:34 AM 9532 in reply to 9530

    Re: Alternative to Lineup.GetServiceIds to get subchannels?

    That's pretty much what I did as a work-around (at least to reliably get the recording requests submitted and processed). Accurate mapped channel information would still be nice to have, if only to confirm to the end-user the 'friendly' cable channel being used.

    Thanks for taking the time to reply!
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems