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
Submit: code patches (MediaPortal/TV-Server/etc.)
TvPlugin ZapOsd Patch
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="jameson_uk" data-source="post: 723243" data-attributes="member: 11220"><p>Not got much time this morning again <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> but looking at </p><p>[code][COLOR=#191970][B]ZapToChannelNumber[/B][/COLOR][COLOR=#006400]([/COLOR][COLOR=#FF0000][B]int[/B][/COLOR] channelNr[COLOR=#006400],[/COLOR] [COLOR=#FF0000][B]bool[/B][/COLOR] useZapDelay[COLOR=#006400])[/COLOR][/code]</p><p>you only have a few things to pickup items from database</p><p>[code]IList[COLOR=#006400]<[/COLOR]GroupMap[COLOR=#006400]>[/COLOR] channels = CurrentGroup[COLOR=#006400].[/COLOR][COLOR=#191970][B]ReferringGroupMap[/B][/COLOR][COLOR=#006400]();[/COLOR][/code]</p><p>Will only give you records from GroupMap table which can only be TV channels</p><p>[code]chan = [COLOR=#006400](([/COLOR]GroupMap[COLOR=#006400])[/COLOR]channels[COLOR=#006400][[/COLOR]iCounter[COLOR=#006400]]).[/COLOR][COLOR=#191970][B]ReferencedChannel[/B][/COLOR][COLOR=#006400]();[/COLOR][/code]</p><p>Which picks up a channel from the channel table (and because the channel ID was picked up from GroupMap table this again should only be able to be a TV channel)</p><p>[code][COLOR=#0000FF][B]foreach[/B][/COLOR] [COLOR=#006400]([/COLOR]TuningDetail detail [COLOR=#0000FF][B]in[/B][/COLOR] chan[COLOR=#006400].[/COLOR][COLOR=#191970][B]ReferringTuningDetail[/B][/COLOR][COLOR=#006400]())[/COLOR][/code]</p><p>Which is picking up records from TuningDetail table based on channelID (which as above should only ever be a TV channel)</p><p></p><p>Then this calls</p><p>[code][COLOR=#191970][B]ZapToChannel[/B][/COLOR][COLOR=#006400]([/COLOR][COLOR=#FF0000][B]int[/B][/COLOR] channelNr[COLOR=#006400],[/COLOR] [COLOR=#FF0000][B]bool[/B][/COLOR] useZapDelay[COLOR=#006400])[/COLOR][/code]</p><p>which follows basically the same logic</p><p></p><p>I guess any issue is therefore further back and possibly as high as the event handler for user input. </p><p></p><p>So if you could confirm how your MCE remote is setup and check the dump of your database for the GroupMap table that would help</p></blockquote><p></p>
[QUOTE="jameson_uk, post: 723243, member: 11220"] Not got much time this morning again :( but looking at [code][COLOR=#191970][B]ZapToChannelNumber[/B][/COLOR][COLOR=#006400]([/COLOR][COLOR=#FF0000][B]int[/B][/COLOR] channelNr[COLOR=#006400],[/COLOR] [COLOR=#FF0000][B]bool[/B][/COLOR] useZapDelay[COLOR=#006400])[/COLOR][/code] you only have a few things to pickup items from database [code]IList[COLOR=#006400]<[/COLOR]GroupMap[COLOR=#006400]>[/COLOR] channels = CurrentGroup[COLOR=#006400].[/COLOR][COLOR=#191970][B]ReferringGroupMap[/B][/COLOR][COLOR=#006400]();[/COLOR][/code] Will only give you records from GroupMap table which can only be TV channels [code]chan = [COLOR=#006400](([/COLOR]GroupMap[COLOR=#006400])[/COLOR]channels[COLOR=#006400][[/COLOR]iCounter[COLOR=#006400]]).[/COLOR][COLOR=#191970][B]ReferencedChannel[/B][/COLOR][COLOR=#006400]();[/COLOR][/code] Which picks up a channel from the channel table (and because the channel ID was picked up from GroupMap table this again should only be able to be a TV channel) [code][COLOR=#0000FF][B]foreach[/B][/COLOR] [COLOR=#006400]([/COLOR]TuningDetail detail [COLOR=#0000FF][B]in[/B][/COLOR] chan[COLOR=#006400].[/COLOR][COLOR=#191970][B]ReferringTuningDetail[/B][/COLOR][COLOR=#006400]())[/COLOR][/code] Which is picking up records from TuningDetail table based on channelID (which as above should only ever be a TV channel) Then this calls [code][COLOR=#191970][B]ZapToChannel[/B][/COLOR][COLOR=#006400]([/COLOR][COLOR=#FF0000][B]int[/B][/COLOR] channelNr[COLOR=#006400],[/COLOR] [COLOR=#FF0000][B]bool[/B][/COLOR] useZapDelay[COLOR=#006400])[/COLOR][/code] which follows basically the same logic I guess any issue is therefore further back and possibly as high as the event handler for user input. So if you could confirm how your MCE remote is setup and check the dump of your database for the GroupMap table that would help [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
TvPlugin ZapOsd Patch
Contact us
RSS
Top
Bottom