NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 56 57 58 59 60 … 93 Next »
Plugin with no UI???

 
  • 0 Vote(s) - 0 Average
Plugin with no UI???
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#1
2006-04-30, 07:20 PM
I think someone might have asked this before but I cant find the thread.

Is it possible to have a plugin which has no user interface, i.e., just runs as a background thread within the gbpvr context so it can properly access the public gbpvr APIs? I have a little utility which I would normally run as a system service but I think I read somewhere that external processes can't properly access the APIs. Is that the case?

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2006-04-30, 07:30 PM
You can implement a plugin which just has a class that has the IEventNotification interface.

You do need to be careful though, as some of the APIs should be called from background threads (initiating music playback etc). You'd be ok scheduling recordings etc, its just really things that interact with the UI that would have problems.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#3
2006-04-30, 07:46 PM
Thanks. Would scheduling a recording be OK? I'm guessing it would as it's a one-off operation that doesn't need to be monitored as such.

It's a bit of a gimmick idea really - one of the old boys in my local pub made a comment that my 'magic box' wasn't up to much if I couldn't schedule recordings using my mobile phone. Turns out my cellphone provider has an SMS -> email gateway service and it only took me 30 minutes to knock up a simple POP3 client in C#. Just need to glue the thing together now. That'll annoy him. Big Grin

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2006-04-30, 07:52 PM
Yes, you could that.

I'm fairly sure you can do a standalone app for that aswell. You should be able to call the IScheduleHelper API from a separate exe. You cant call the IPluginHelper stuff though.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#5
2006-04-30, 07:54 PM
OK I'll try it as an external app. first then. Cheers.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,103 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,574 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,652 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,017 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,889 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,339 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,033 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,269 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,348 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,506 2012-01-15, 08:33 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode