home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Audio/Video PIDs
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="drfonz" data-source="post: 173715" data-attributes="member: 26014"><p>Hi there,</p><p></p><p>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:</p><p></p><p>[CODE]</p><p> // Lets get the desired channel</p><p> Channel channel = GetChannel(channelID);</p><p></p><p> if (channel != null)</p><p> {</p><p> // Try to get the PIDs out of this one...</p><p> IList tuningdetails = channel.ReferringTuningDetail();</p><p> </p><p> foreach (TuningDetail td in tuningdetails)</p><p> {</p><p> _log.Debug("MPController: Video PID (" + td.VideoPid + ") - Audio PID (" + td.AudioPid + ")");</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p>But this returns -1 for both PIDs. Looking at the code for <span style="font-family: 'Courier New'">Channel.ReferringTuningDetail()</span> 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?</p><p></p><p>Otherwise I'll have to hack my way into the code, but I rather use an "officially approved" way of doing this <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p>AL</p></blockquote><p></p>
[QUOTE="drfonz, post: 173715, member: 26014"] 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: [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 + ")"); } } [/CODE] But this returns -1 for both PIDs. Looking at the code for [FONT="Courier New"]Channel.ReferringTuningDetail()[/FONT] 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 :) :thx: AL [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Audio/Video PIDs
Contact us
RSS
Top
Bottom