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,772
Threads: 769
Joined: Nov 2003
#71
2014-12-24, 06:34 PM
Another thing this translator seems to have done incorrectly is how it implements interfaces.

Where it writes:
Public Function GetSettingsPage() As SettingsPage

You need:
Public Function GetSettingsPage() As SettingsPage Implements IPluginConfiguration.GetSettingsPage
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#72
2014-12-24, 06:35 PM
Public Sub PluginCallback(source As Object, command As String, args As Object)

becomes

Public Sub PluginCallback(source As Object, command As String, args As Object) Implements IPluginCallback.PluginCallback
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#73
2014-12-24, 06:36 PM
Public Sub Notify(eventName As String, eventArg As Object)

becomes

Public Sub Notify(eventName As String, eventArg As Object) Implements IEventNotification.Notify
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#74
2014-12-24, 06:37 PM
Public Sub HandleButtonCommand(buttonName As String)

becomes

Public Sub HandleButtonCommand(buttonName As String) Implements UiButtonList.IUiButtonListCallback.HandleButtonCommand

...then it should compile.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#75
2014-12-24, 07:12 PM
[quote=sub]I'm not going to have much time today, but I'll try give pointers on a couple of these./QUOTE]

No worries, I am gone for the holidays this afternoon. I'll have my laptop with me but I am not going to have to much time to to devote to this now until after the new year. Happy holidays to you and yours or as I like to say Merry Christmas and a Happy New Year!
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#76
2015-01-03, 12:03 AM
Made the changes and resolved the errors, it compiled and ran with no issues within NPVR. I've attached it if anyone else wants it. Thanks for the pointers!
wayloncovil
Offline

Junior Member

Posts: 39
Threads: 14
Joined: Oct 2013
#77
2016-10-20, 03:39 AM
Do you have a copy of the most recent sample development files? My C# skills are very poor but I'd like to load them in Visual Studio and see if I can make heads or tails out of the code.
I want to try my hand at making a guide search plug-in. Would I need to understand how the database functions in order to do something like that?
Thanks!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#78
2016-10-20, 03:57 AM
The most relevent example plugin is here:

http://forums.nextpvr.com/showthread.php...post482912
mandai
Offline

Junior Member

UK
Posts: 9
Threads: 1
Joined: Nov 2020
#79
2020-11-26, 09:24 PM (This post was last modified: 2020-11-26, 09:34 PM by mandai.)
Hi I am trying to compile the test3 example plugin but I get errors that namespaces NUtility.Base and NUtility.Controls do not exist.

Also I get lots of errors when NUtility.dll is referenced like Warning The primary reference "NUtility" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime.Serialization.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "NUtility" or retarget your application to a framework version which contains "System.Runtime.Serialization.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
I am using the target .Net framework 4.0. Is there some setting which needs to be changed? I am using Visual Studio 2017
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,079
Threads: 957
Joined: May 2006
#80
2020-11-26, 09:31 PM
Are you writing plugin for v4? You can't create plugins for v5 at this point.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 … 5 6 7 8 9 Next »
Jump to page 


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