NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Plugins and NPVR. Where do we start?

 
  • 0 Vote(s) - 0 Average
Plugins and NPVR. Where do we start?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#1
2010-03-19, 07:25 PM
This sticky thread contains information about developing plugins for NextPVR.

I've updated this first post to collect together the sample plugins I've posted later in the thread.

- Test1.zip/Test2.zip use a framework similar to that used by GBPVR in the past, but only really exist to help users porting old plugins over to NextPVR. It's not recommended you use these in new plugins.

- Test3.zip shows a simple NextPVR plugin, in the style of many of the built in screens, with list of items and hidden menu bar at the top of the screen. It also shows how implement a popup, and a settings screen.

- TestRecorder.zip provide a skeleton recorder for those wanting to implement support for custom tuner types.

There is plenty of other useful discussion later in this thread, and in other threads posted in the developers forum, but if you need more info, or want help on getting started, just post and I'll point you in the right direction.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#2
2010-06-14, 03:22 AM
Wowza. I'm feeling a little as if the rug has been pulled out from beneath me.

So. Where do I begin? After adding random references to DLLs, there seems to be some interesting interfaces in nutility.dll with promising names. IScreenPlugin I'm guessing, with IVideoPlugin for OSD goodies?

Is the source to test3.dll available? I can probably muddle my way through with that for the time being, after I stop whimpering in the corner.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#3
2010-06-14, 03:01 PM
Good point. sub made the source for all three test plugins available to the testers but not public yet. I'm sure he'll rectify that soon.

As far as developing is concerned, there are very many similarities to developing for npvr so it's not that scary with the demo source. There are a number of new things and some not implemented yet but it's early days for npvr so we'll need to be patient.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2010-06-14, 04:15 PM
As Brian said, it very similar, so hopefully wont be too scary.

Here was a couple of sample plugins. Test2 was with the old style screen, buttons on the left, list on the right. Test3 was with smaller hidden button in the top right, list below.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#5
2010-06-14, 09:59 PM
Thank you very much to you both! I'm feeling a bit less stunned than I was 24 hours ago.

There is clearly some work ahead of me, but it no longer seems insurmountable.

Do I understand correctly that the general direction for NPVR is the "new style screen" with the hidden menu, top left? That is, were I to want to remain as close to the base nPVR install, this is the style I should reproduce?

So far, I've been unable to figure out how to bring up the plugin's configuration form (or, indeed, how to add it to the main menu list without manually editing config.xml).

It could be that these are items simply not available in the beta release, which is fine. Goodness knows it will be a while before I'll really need to worry about them.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2010-06-14, 10:06 PM
Ommina Wrote:Do I understand correctly that the general direction for NPVR is the "new style screen" with the hidden menu, top left? That is, were I to want to remain as close to the base nPVR install, this is the style I should reproduce?
It wasnt really a conscious decision, but yes, pretty much all the screens ended up with that general look. It still supports the old look, and I initially used this for the Recordings screen, but it looked out of place compared to the TV Guide and Library screens, so I switched it to the newer style.

Quote:So far, I've been unable to figure out how to bring up the plugin's configuration form (or, indeed, how to add it to the main menu list without manually editing config.xml).
I'll have to do a bit more work for getting to the settings screen, and for listing the installed plugins etc. I'll probably add this over the next week or two though, so just work on the assumption it'll happen soon. You'll most likely end up with a screen added to the Settings screen for configuring your plugin. (ie, named added to the list on the left, click it and your form will be shown on the right.
Jaggy
Online

Posting Freak

Carterton, NZ
Posts: 3,633
Threads: 148
Joined: Mar 2006
#7
2010-06-14, 10:08 PM
Ommina Wrote:Do I understand correctly that the general direction for NPVR is the "new style screen" with the hidden menu, top left? That is, were I to want to remain as close to the base nPVR install, this is the style I should reproduce?

MVallevand worked some magic in nWebRadio using the top menu button coding to allow for either the top one or the old style (but actually hidden until selected) depending on a setting in the skin, I'm sure he will be willing to pass on how he did it. As a skinner of a large font skin I am a fan of the hidden top menu as it gives more real estate for displaying other things.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,109
Threads: 957
Joined: May 2006
#8
2010-06-14, 11:54 PM
Ommina Wrote:Thank you very much to you both! I'm feeling a bit less stunned than I was 24 hours ago.

I felt stunned too, but Jaggy did the skin and then it was pretty easy

Quote:Do I understand correctly that the general direction for NPVR is the "new style screen" with the hidden menu, top left? That is, were I to want to remain as close to the base nPVR install, this is the style I should reproduce?

Yes I think we are stuck with this, like it or not, it is the "new" Blue. You can use either style of button, but I haven't been able to mix them yet.

Martin
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#9
2010-06-15, 11:01 PM
Hm. Am I required to inherit from NUtility.Base.SimpleButtonPlugin or NUtility.Base.NewStyleButtonListPlugin ? I'm not seeing any other place with a .GetSkinHelper() -- IScreenPlugin doesn't have it.

Or am I missing something obvious - again ?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,109
Threads: 957
Joined: May 2006
#10
2010-06-15, 11:11 PM
It's your choice, do you want visible buttons or new style buttons?

Martin
« 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
  API channel.stream.start mvallevand 2 1,445 2023-05-07, 09:40 PM
Last Post: mvallevand
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,447 2021-03-11, 03:59 PM
Last Post: mvallevand
  Test/Development environment for npvr.db3 scJohn 10 4,510 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,534 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,695 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,524 2015-09-21, 06:39 PM
Last Post: jnbooker15
  I want to start developing plugins...but how? OrenShapir 6 4,148 2014-11-18, 10:38 PM
Last Post: mvallevand
  Couple of questions about hacking npvr.db3 drmargarit 6 4,339 2014-09-08, 02:22 AM
Last Post: sub
  Absolute newbie trying to realize an idea - where to start? Oopsjoppe 13 5,760 2013-11-11, 05:33 PM
Last Post: Oopsjoppe
  high res (256x256+) npvr icon? reven 15 6,010 2013-09-01, 05:13 AM
Last Post: psycik

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

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

Linear Mode
Threaded Mode