NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 … 93 Next »
Plugins and MVP / PCH - are there extra requirements?

 
  • 0 Vote(s) - 0 Average
Plugins and MVP / PCH - are there extra requirements?
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#31
2009-03-22, 02:17 AM
Bump
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#32
2009-03-22, 03:21 AM
I've attached a patch that gives more info.

Just thinking though... in your plugin's needsRendering() method, are you checking the uiStatic.needsRendering()? When you call SetArgs() on the uiStatic, and the data has changed, it'll set the forceRender status, and will return true from needsRendering() until GetRenderList is next called.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#33
2009-03-23, 01:05 AM
The log shows this activity...

start music
start MLPanel in normal refresh mode
Code:
2009-03-23 00:03:26.877 VERBOSE [6] Key pressed: Return
it does one quick re-render then once every ten seconds - left it running for about 40 seconds then switched to 'per second' mode here
Code:
2009-03-23 00:04:06.078 VERBOSE [6] No key mapping found for: ^B
in this mode it's the '@PlayPos:0:33' arg which changes
I let run for about another 30 seconds before giving the MVP the green button...

Here's my needsRendering()
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]public [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] needsRendering()[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]// use the renderInterval value to decide if we need to render.[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]// *TEMP* until I find out why the first render is not cleared with Inc Upd...[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//        don't wait for the render interval if this is the first re-render.[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#008000]// *TEMP* try checking the uiElement1.needsRendering() state.[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (lastTimeRender.AddSeconds(renderInterval) <= [/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]DateTime[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].Now || renderCount ==1 || uiElement1.needsRendering())[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#34
2009-03-23, 01:29 AM
You'll need to look at the 'UiStatic.SetArgs() called' log messages, and see if it logs "UiStatic.SetArgs() is setting forceRefresh, and will return true to needsRendering()" at the times you expect it should.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#35
2009-03-23, 02:03 AM
Alternatively if you forward me some sample code that exhibits the problem you're trying resolve, I'll find the cause for you.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#36
2009-03-23, 03:26 AM
sub Wrote:You'll need to look at the 'UiStatic.SetArgs() called' log messages, and see if it logs "UiStatic.SetArgs() is setting forceRefresh, and will return true to needsRendering()" at the times you expect it should.
I'd like to have a wee look at this (still learning) but...

sub Wrote:Alternatively if you forward me some sample code that exhibits the problem you're trying resolve, I'll find the cause for you.
this sounds like a lot faster way to learn... I'm not sure what you mean by sample code, but I'd be happy to let you have all the code...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#37
2009-03-23, 03:09 PM
I've PM'd you my email address. Send over whatever I'll need, and comments about how to reproduce the problem.
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,272
Threads: 136
Joined: Mar 2006
#38
2009-04-14, 10:30 PM
ACTCMS Wrote:I'd like to have a wee look at this (still learning) but...

this sounds like a lot faster way to learn... I'm not sure what you mean by sample code, but I'd be happy to let you have all the code...

I assume from the lack of activity from you on the MLPanel front for quite some time now you have run into a brick wall with this problem or have you given up on it all together?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,396
Threads: 868
Joined: May 2006
#39
2009-04-15, 12:07 AM
The last test program that ACTCMS gave me was working pretty well, I'd use it if it didn't exit to the main menu.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#40
2009-04-15, 01:26 AM
Jaggy Wrote:I assume from the lack of activity from you on the MLPanel front for quite some time now you have run into a brick wall with this problem or have you given up on it all together?
He sent me the code to investigate, but I just havnt found the time to look into it. Too busy with my day job.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extra Events jcole998 1 871 2021-03-08, 02:48 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 59,570 2020-11-26, 10:02 PM
Last Post: mandai
  I want to start developing plugins...but how? OrenShapir 6 3,237 2014-11-18, 10:38 PM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 1,573 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 1,571 2013-02-19, 07:45 PM
Last Post: mvallevand
  .NET 4 plugins? McBainUK 20 5,810 2012-12-11, 08:48 PM
Last Post: sub
  Integrated Development Environment (IDE) for plugins osx-addict 5 1,994 2012-10-18, 08:35 PM
Last Post: osx-addict
  Tuner plugins mvallevand 4 1,817 2012-08-05, 11:19 PM
Last Post: mvallevand
  Recorder plugins - Deleting tuners mvallevand 1 1,095 2012-03-29, 12:51 AM
Last Post: sub
  Recorder plugins - scheduling mvallevand 4 1,750 2012-03-26, 05:09 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode