NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 9 10 11 12 13 … 93 Next »
List of "IEventNotification" events?

 
  • 0 Vote(s) - 0 Average
List of "IEventNotification" events?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2012-11-01, 09:29 PM
Hi Sub,

Can you give me a complete list of events from "IEventNotification" ?

Might want to shove this up on the wiki too.

http://www.nextpvr.com/nwiki/pmwiki.php?...tification

is pretty blank....

Cheers
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2012-11-01, 09:38 PM
also how would i go about to listening to events in a webapp?

heres my class atm

Code:
class NextPvrEventListener : NUtility.IEventNotification
    {
        public NextPvrEventListener()
        {
            NUtility.EventBus.GetInstance().AddListener(this);
        }

        public void Notify(string eventName, object eventArg)
        {
            NextPvrEventHub.Clients_ShowInfoMessage("NextPVR Event: " + eventName);
        }
    }
currently not getting any events, I'm not sure what events I will get, just tried playing video in nextpvr and nothing.

more interested in events like recording started, recording deleted, live tv started/stop etc. not really interested in video playback started on each client (but dev machine and no tuner cards, so just trying to test it)
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2012-11-01, 10:07 PM
The API doesn't work outside of npvr, you'd have to communicate with a webapp via something that was running inside of it I'd think.

Iain
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#4
2012-11-01, 10:19 PM
As imilne says above, these messages are internal to the running NextPVR.exe process. They're not visible in a web app running inside Nrecord.exe.

From a quick look in the code:

STARTUP_COMPLETE
RELOAD_RECORDINGS
RELOAD_CHANNEL_LIST
WINDOW_RESIZE
VOLUME_CHANGED
PLAYING_LIVETV
PLAYING_VIDEO
PLAYING_AUDIO
PLAYING_AUDIO_ENDED
PLAYING_DVD
PLAYBACK_STOPPED
REQUEST_PIP_CHANNEL
REQUEST_PIP_SWAP
SCREENSAVER_STARTING
SCREENSAVER_STOPPING
EXITING
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2012-11-01, 10:28 PM
how would one go about getting events like recording started, live tv started, channel change etc then from a web app?

like if i was designing an iphone app, i would like to get notifications (pushed from a server app to the client) about these things, and dont want the server to constantly poll to check.

how does the tray app get this info?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#6
2012-11-01, 10:34 PM
You'd probably have to create a plugin that runs in NextPVR.exe to receive these events, then push the notifications to your web app.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2012-11-01, 10:41 PM
hmmmm, that wouldnt really work if the gui wasnt opened, which would be all the time for me.

mainly after events like live tv started, channel change etc, so I can display the status of the tuners. how does the tray app go about getting this info?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#8
2012-11-01, 10:55 PM
The tray app works by polling NShared.RecordingServiceProxy.GetInstance().GetServerStatus(), which an xml description of what each tuner is doing. This gives you the filename of any recordings or live tv buffer files, but not much more than that.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#9
2012-11-01, 10:56 PM
cheers, i can work with that.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Extra Events jcole998 1 1,517 2021-03-08, 02:48 PM
Last Post: mvallevand
  Channels List by Channel Group Name scJohn 1 2,814 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,150 2017-06-19, 09:14 AM
Last Post: psycik
  NMT Video Playback - does it receive start/stop events psycik 8 3,511 2012-07-15, 10:01 PM
Last Post: mvallevand
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,926 2012-02-05, 10:29 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,808 2011-12-22, 12:25 AM
Last Post: mvallevand
  Single row horizontal list in popup? cncb 4 2,250 2011-09-28, 09:48 PM
Last Post: cncb
  Settings config screen for class IEventNotification plugin imilne 9 3,624 2011-09-17, 06:06 PM
Last Post: sub
  A list of changing images McBainUK 1 1,881 2011-06-21, 04:36 PM
Last Post: sub
  Multiple views for a single list imilne 18 5,712 2011-04-22, 11:06 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