NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 89 90 91 92 93 Next »
'Loading' screen for plugins

 
  • 0 Vote(s) - 0 Average
'Loading' screen for plugins
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#1
2004-04-11, 06:18 PM
How would I put up a 'loading' screen to indicate the plugin was going out on the net to gather data (like the weather data for example)?  I don't see how I would render the loading screen and return to gb-pvr and still go out, get the data, and render the 'real' weather screen.

Do we need a new plugin method like:

// returns true to render something and false if no splash screen
public bool SplashScreen()
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#2
2004-04-11, 06:40 PM
Because this can be a lengthy operation, you probably need to to launch a worker thread to retrieve the information which would set a "complete flag" when done. Render should set the bRequiresMoreRendering flag, until the operation is complete forcing it to be repeatidly rendered. Render() should should a "loading" messages until it has completed.

I expect this same approach would probably also be used by much longer processes such as a DVD Ripper plugin, which might show a percentage complete etc.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#3
2004-04-11, 06:45 PM
Thanks. That's on my list of things to do [Image: smile.gif]
-CodeMonkey
TypQxQ
Offline

Junior Member

Posts: 36
Threads: 9
Joined: Apr 2004
#4
2004-04-11, 06:57 PM
An even better thing would be if u could return to the main menu and start another plugin while the riping goes on...

Could be done with a service...
Maybe a service that with plugins, so you would have a frontend plugin inside GBPVR that comunicates with the service that runs the plugin that does all the real work.
Maybe when the BGPlugin deactivates, it would set the services priority to low. That way you could still watch a movie or watever....
/Q
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#5
2004-04-11, 07:08 PM
You actually should be able to implement that sort of approach with the current plugin architecture (without the service).

The plugin could be coded to show then either a screen for a initiating a DVD rip, or a progress screen with a cancel button. That way when they first visit the screen and initiate a DVD rip, a worker thread would be started (possible low priority), which preforms the ripping. The user would be free to continue using GB-PVR for whatever they like. If they return to the plugin, they user would be shown up to date progress information that was reported by the ripping thread.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Loading Local Video Files Syler 25 6,621 2021-03-07, 09:20 PM
Last Post: Syler
  Plugins and NPVR. Where do we start? sub 80 69,031 2020-11-26, 10:02 PM
Last Post: mandai
  I want to start developing plugins...but how? OrenShapir 6 4,087 2014-11-18, 10:38 PM
Last Post: mvallevand
  Trouble loading .NET System assemblies bgowland 3 2,393 2013-10-31, 02:37 AM
Last Post: bgowland
  Tuner plugins and client id mvallevand 2 2,078 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 2,054 2013-02-19, 07:45 PM
Last Post: mvallevand
  .NET 4 plugins? McBainUK 20 7,777 2012-12-11, 08:48 PM
Last Post: sub
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,772 2012-10-18, 08:35 PM
Last Post: osx-addict
  Multiple lists like in Search Screen cncb 7 3,283 2012-08-08, 09:11 PM
Last Post: cncb
  Tuner plugins mvallevand 4 2,461 2012-08-05, 11:19 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