NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 16 17 18 19 20 … 93 Next »
STARTUP_COMPLETE event on NMT

 
  • 0 Vote(s) - 0 Average
STARTUP_COMPLETE event on NMT
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
2011-02-12, 08:57 AM
Hi sub,

is there a reason why the STARTUP_COMPLETE event never seems to occur in the mvp server instance? The problem is that I'm trying to set text in the 'Now Playing' section, and there may be problems if the PluginHelper methods "SetAudioDesciption" and "ForceRender" are called too early:

Code:
2011-02-12 11:58:57.528    [DEBUG][11]    TV Recordings: Panel: Setting panel text to 'Next Recording: (none scheduled)'...
2011-02-12 11:58:57.538    [DEBUG][11]    TV Recordings: Calling 'PluginHelper.SetAudioDescription("Next Recording: (none scheduled)");'.
2011-02-12 11:58:57.538    [DEBUG][11]    TV Recordings: Calling 'PluginHelper.ForceRender();'.
2011-02-12 11:58:57.648    [ERROR][11]    Unexpected error in doCompositeRendering(): System.NullReferenceException: Object reference not set to an instance of an object.
   at NextPVR.MVP.MVPServerForm.DoCompositeRendering()
2011-02-12 11:58:57.648    [DEBUG][11]    DoCompositeRendering() took 80.1152ms

-alibert
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,918
Threads: 956
Joined: May 2006
#2
2011-02-12, 02:17 PM
I would not do any skin writting before Initialise is called.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,699
Threads: 767
Joined: Nov 2003
#3
2011-02-12, 04:47 PM
I hadnt noticed 'STARTUP_COMPLETE' wasnt being sent for an MVP. I've added it for the next build. I fire this event after a MVP client has connected, so that we already know the resolution etc this client will use.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#4
2011-02-12, 04:51 PM
Hi,

many thanks for adding this. So, will it be safe to call PluginHelper.SetAudioDescription / ForceRender after the event has fired?

-alibert
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,918
Threads: 956
Joined: May 2006
#5
2011-02-12, 04:55 PM
Thanks sub.

Martin
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#6
2011-02-12, 05:07 PM
Hi,

looking at the logs ("Using vertical resolution = ...") , I'd guess that setting the event at that stage might be a bit early, since none of the plugin contructors would be able to register for events if they've not been added.

-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,699
Threads: 767
Joined: Nov 2003
#7
2011-02-12, 05:15 PM
alibert Wrote:So, will it be safe to call PluginHelper.SetAudioDescription / ForceRender after the event has fired?
I guess so, but I havnt tried it. If it doesnt work with the next release, post the logs and I'll take a look.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording Event jrockow 10 4,688 2014-07-28, 02:51 PM
Last Post: jrockow
  Event codes mvallevand 10 3,776 2011-04-06, 04:26 AM
Last Post: mvallevand
  "Rating" in cached event details xml alibert 74 16,833 2011-03-28, 01:06 AM
Last Post: zehd
  NPVR - temporary solution to lack of searchable fields after event is gone from guide carpeVideo 5 2,233 2010-09-29, 03:08 AM
Last Post: mvallevand
  How do I catch the event where a list item is selected? mkenyon2 3 1,420 2009-01-06, 06:36 PM
Last Post: sub
  Csharp Event help needed.. psycik 4 2,064 2008-05-25, 06:19 AM
Last Post: psycik
  Question about the new EPGUpdate event Jeff 1 1,277 2008-03-27, 04:15 PM
Last Post: sub
  Forcing a Recording event to status 5 or 6 zehd 1 1,492 2008-03-25, 01:50 AM
Last Post: sub
  Error initializing event plugin: Exception has been thrown by the target of an invoca ralphy 1 1,999 2008-01-21, 11:23 PM
Last Post: ralphy
  Form KeyDown Event Problems HydroChronic 1 1,508 2007-07-17, 02:09 PM
Last Post: HydroChronic

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

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

Linear Mode
Threaded Mode