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
#1
2008-06-15, 01:04 PM
I'd like to instrument the viewing behavior of my GBPVR users (yeah, I know, weird...)

I'd like to be able to detect the following events

1 user is interacting with gbpvr in any way (ie, navigation...)
2 user is watching a recorded show (recording details or at least name would be good to know)
2a (essentially 1 again) user pause/skip/play actions while watching)
3 ditto for 2/2a for live TV

This doesn't seem crazy hard to do, but I'm not sure its doable via the plugin system. All I need is the events. If they're already somewhere in a log file, that could work as well - I didn't find one but I don't think I have logging on.

I'm running one version back from current, but can update (just haven't got round to it...)

Thanks for any pointers!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2008-06-15, 01:39 PM
Sorry, most of this isnt visible from a plugin. You can get events to notify you when a media file starts playing (including the filename), playback stopping, live tv starting and notification of the channels changing. Plugins dont get any notification of play/pause/skip etc, or general user navigation.
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#3
2008-06-15, 02:29 PM
Thanks, sub... so I can do some of it, anyway, just via a normal plugin? That will do for now. I'll give it a go and see where I get Wink
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#4
2008-06-15, 02:59 PM
As well as event notifications, you can also monitor keystrokes (or remote control commands). You can also query the db to find current live TV info. I can't see any reason why you couldn't write a plugin to build a usage log.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2008-06-15, 09:13 PM
You just need to implement a .net class in your DLL which implements the IEventNotification interface. It doesnt need to have user interface.
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#6
2008-06-15, 09:41 PM
sub Wrote:You just need to implement a .net class in your DLL which implements the IEventNotification interface. It doesnt need to have user interface.

Sounds good! I won't have a chance to give it a go until tuesday, but I'll be back then with questions if I run into the limits of my intelligence Wink
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#7
2008-06-16, 11:00 AM
JohnInSJ Wrote:1 user is interacting with gbpvr in any way (ie, navigation...)
2 user is watching a recorded show (recording details or at least name would be good to know)
2a (essentially 1 again) user pause/skip/play actions while watching)
3 ditto for 2/2a for live TV

1. is no problem (as long as you dont want to know where in the menu the user is, that might be impossible), see link for that below
2. video playback is also no problem, only one restriction (2a)... (from memory i'm not sure about details), again: check link for code.
2a that's most likely not possible (as i remember i could not get the current status (playing vs. paused) detected)
3. same as 2/2a

take a look at my modified bleepbloop plugin, i've attached the source (monitor.cs) at this post here, should help to get you started
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#8
2008-06-16, 12:16 PM
Thanks KS - that code covers the interaction monitoring and looks like a great start.
JohnInSJ
Offline

Member

Posts: 172
Threads: 31
Joined: Dec 2005
#9
2008-06-18, 12:59 PM
I got to put a little time into this yesterday... got myself set up with the ic#code IDE, built a project based on KS's monitor.cs, and starting poking around... looks very doable. I can see how I can make a decent guess of what's going on based on the keys I see, and the video playing state.

It wasn't instantly obvious where/how I see these: "You can get events to notify you when a media file starts playing (including the filename), playback stopping, live tv starting and notification of the channels changing." - that would really help, of course... if anyone can give me a quick kick in the pants so I end up pointing at the right place to get that, I'll be all set *

* all set meaning all I have to do now is figure out how to do in c# what I could do in 2 lines of php code - make an http post using curl. But we digress Wink
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#10
2008-06-18, 01:17 PM
JohnInSJ Wrote:IIt wasn't instantly obvious where/how I see these: "You can get events to notify you when a media file starts playing (including the filename), playback stopping, live tv starting and notification of the channels changing." - that would really help, of course...
Your plugin implements the IEventNotification interface. The app will call the Notify() method on this interface each time these types of events occur, supplying the event type and any parameters.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


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