Hi there,
I was wondering if there is a way of programmatically finding out the Audio/Video PIDs of a given channel. I have tried using something like this:
But this returns -1 for both PIDs. Looking at the code for Channel.ReferringTuningDetail() it simply gets these from the Database, and from reading through the forums it looks like these are never stored anyway as TVEngine autodetects them every time a channel is tuned in. So I guess the question is: Is there any way of retrieving the PIDs for any channel with the currently available API, or are there plans to implement this?
Otherwise I'll have to hack my way into the code, but I rather use an "officially approved" way of doing this
AL
I was wondering if there is a way of programmatically finding out the Audio/Video PIDs of a given channel. I have tried using something like this:
Code:
// Lets get the desired channel
Channel channel = GetChannel(channelID);
if (channel != null)
{
// Try to get the PIDs out of this one...
IList tuningdetails = channel.ReferringTuningDetail();
foreach (TuningDetail td in tuningdetails)
{
_log.Debug("MPController: Video PID (" + td.VideoPid + ") - Audio PID (" + td.AudioPid + ")");
}
}
But this returns -1 for both PIDs. Looking at the code for Channel.ReferringTuningDetail() it simply gets these from the Database, and from reading through the forums it looks like these are never stored anyway as TVEngine autodetects them every time a channel is tuned in. So I guess the question is: Is there any way of retrieving the PIDs for any channel with the currently available API, or are there plans to implement this?
Otherwise I'll have to hack my way into the code, but I rather use an "officially approved" way of doing this
AL