NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 30 31 32 33 34 … 93 Next »
Not a plugin-exactly, but want to get events...

 
  • 0 Vote(s) - 0 Average
Not a plugin-exactly, but want to get events...
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#11
2008-06-18, 10:23 PM
Are the event types/parms documented somewhere? They're either not documented, or right under my nose :p
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#12
2008-06-18, 10:35 PM
JohnInSJ Wrote:Are the event types/parms documented somewhere? They're either not documented, or right under my nose :p
I figured out the ones I wanted by writing to a log file everything that came through "public void Notify" and playing about with pvrx2 for a while.
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#13
2008-06-19, 12:15 AM
Yep, that would work. Big Grin
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#14
2008-06-21, 12:23 PM
Thanks again all, I've actually built it, it's working great.

For those that care, if you just want to track viewing shows the two events are
Code:
switch (eventType) {
                case GBPVR.Public.EventTypes.CurrentVideoPath:
                    string[] parts = eventText.Split('\\');
                    string group = parts[parts.Length-2];
                    string name = parts[parts.Length-1];
                    // tell someone we're watching this...
                    break;
                case GBPVR.Public.EventTypes.VideoStopping:
                    // tell someone we've stopped watching
                    break;
                default:
                    // ignored
                    break;
  }

That, coupled with a state machine, some timers, and a QueueMessageFilter keyboard monitor in the plugin, and I can now log when someone is using gbpvr (ie, using the remote) and when/what recorded shows they are watching

Thanks ACTCMS and KS for the code examples, and Sub for a well designed and extensible platform...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 259 2022-10-17, 12:44 AM
Last Post: sgilani
  Extra Events jcole998 1 869 2021-03-08, 02:48 PM
Last Post: mvallevand
  New Systems Plugin kirschey 10 1,995 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 2,672 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,278 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,147 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 4,547 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,482 2013-03-12, 06:48 AM
Last Post: psycik
  List of "IEventNotification" events? reven 8 2,460 2012-11-01, 10:56 PM
Last Post: reven
  Plugin problems with started from the command line mvallevand 11 3,566 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