NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 27 28 29 30 31 … 93 Next »
1.x plugin development

 
  • 0 Vote(s) - 0 Average
1.x plugin development
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#1
2007-07-08, 12:22 AM
When I've got some more time available, I'll post more info for you guys on developing 1.x plugins, some tutorials etc, but in the mean time I wanted to get you some samples to look at.

For those that have developed plugins in the past, 1.x plugin is basically the same in that it implements the old IMenuTask interface, but in addition it also implements the new IUiTask interface. This IUiTask interface has a new method called GetRenderList() which is used to get a list of images and their location on the screen that make up the picture.

There some new base classes and control that really help simplify plugin development. These base classes are used in the first two samples below, and make it easy to do plugins that have buttons + list (for example Video Library, Recordings etc), or buttons + data (for example Weather plugin etc).

See attached

1) simple Hello World plugin, using the BaseButtonListUiTask base to show a list of button on the left, list view on the right, much like the Video Library, Recording screen etc.

2) Weather plugin skeleton. This was a skeleton I supplied to Jeff, gives the basic layout of the weather plugin... a few buttons on the left, data one the right, simple popup.

3) DVD Ripper plugin. This was a fully functioning DVD Ripper plugin using the new GUI.

4) Tile plugin, showing some advanced animation techniques, similar to those seen in Vista MCE.

EDIT: attachments removed, but you can access them here: http://gbpvr.com/pmwiki/pmwiki.php/Devel...odeSamples
kendrak24
Offline

Member

Posts: 119
Threads: 26
Joined: Dec 2004
#2
2007-07-09, 06:59 PM
Hm. The Hello.zip doesn't contain any source code, just the dll and skin...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#3
2007-07-09, 07:04 PM
Ah, right you are. Try downloading the attachment again. It now has the code.
kendrak24
Offline

Member

Posts: 119
Threads: 26
Joined: Dec 2004
#4
2007-07-09, 07:05 PM
Thanks, that was quick! :-)
kendrak24
Offline

Member

Posts: 119
Threads: 26
Joined: Dec 2004
#5
2007-07-12, 05:25 PM
Sub, you don't happen to have some example of button handling in popups (like in recording details)? Is there something like e.g. BaseButtonUiTask but for popups? Or am I stuck with handling everything "manually" as before?

TIA
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#6
2007-07-12, 05:36 PM
There is a popup base class used in the weather plugin sample (for adding a city). It does the basic popup, but its up to you to add whatever controls you want to show on the popup.
kendrak24
Offline

Member

Posts: 119
Threads: 26
Joined: Dec 2004
#7
2007-07-12, 08:08 PM
Yeah, I looked at that example, but the popup just contain one control... But thanks for the answer. At least I now know that there isn't anything resembling the BaseButtonUiTask or BaseButtonListUiTask for popups. Just wanted to check that before starting...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#8
2007-07-12, 10:43 PM
kendrak24 Wrote:Yeah, I looked at that example, but the popup just contain one control...
Thats all that was required for that example. There was nothing to stop you adding additional controls.

Quote:At least I now know that there isn't anything resembling the BaseButtonUiTask or BaseButtonListUiTask for popups. Just wanted to check that before starting...
There probably will be something like that in the future, buts I havnt needed it yet, so just the simple popup base class at this stage.
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#9
2007-07-12, 11:00 PM
I've been testing my plug-ins and I've noticed that my OnKeyDown() handler is not called when the Menu key is pressed. It seems like PVRX2 always consumes these and returns to the main menu.

Jeff
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#10
2007-07-12, 11:13 PM
To be honest, I cant remember. I'm out of town for a couple of days, so not in front of my development PC to check.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): 1 2 3 4 5 … 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,809 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,343 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,294 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,449 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,896 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,766 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,080 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,945 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,755 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 4,975 2012-08-12, 07:56 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode