NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 5 6 7 8 9 … 93 Next »
Recording Event

 
  • 0 Vote(s) - 0 Average
Recording Event
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#1
2014-07-27, 10:13 AM
Is there an event name that triggers when a recording is in progress, or completed?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#2
2014-07-27, 05:31 PM
Recordings happen in the NRecord.exe and events that happen there aren't visible in plugins running in NextPVR.exe.
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#3
2014-07-27, 06:14 PM
I am trying to get my plugin to re-populate the shows listing whenever a new recording is available.
Can you suggest another approach?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#4
2014-07-27, 06:18 PM
I'm not sure there is a good answer to this. My screens just reload the recording list whenever a screen they're activated, and every few minutes while active.
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#5
2014-07-27, 06:23 PM
I thought I read some time ago that using timers to reload screens was a bad idea?
I'll have to look into it.
Thanx.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#6
2014-07-27, 06:35 PM
jrockow Wrote:I thought I read some time ago that using timers to reload screens was a bad idea?
I think you missed the point of that post - ie, using .NET Timers are a bad idea, because they use a background thread, which will lead to GDI exceptions if you try to draw anything.

Instead of using timers, just do something like check your last load time in NeedsRendering(), and reload if it's time. This happens on the foreground thread, so is safe to do GDI stuff. Doing it in NeedsRendering() also gives you the advantage of only happening while your screen is active.
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#7
2014-07-27, 06:51 PM
OK, thanx for the correction.
I thought I remembered that timers should be avoided.
I'll try to figure out how to code it with NeedsRendering().
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#8
2014-07-28, 01:34 AM
It seems to me that NeedsRendering isn't firing automatically for me.
Actually, it only fires 1 time when I first load the plugin.

I read something earlier about "horizontal menus".
My plugin is styled after your "SEARCH" menu; is that what you call a horizontal menu?

Does NeedsRendering work with horizontal menus?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#9
2014-07-28, 01:37 AM
Your plugin's NeedRendering() routine is called continually while it's on the screen. (regardless of what menu you're using)
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#10
2014-07-28, 01:54 AM
I must have something screwed up.
I only get the message (my test message) displayed if I toggle a key.

Without any activity the message does not appear, no matter how long I wait.
« 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
  Custom recording tomx 2 452 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 300 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 938 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,415 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,914 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,591 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,680 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,753 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,010 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 10,079 2014-12-19, 10:28 PM
Last Post: cbgifford

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

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

Linear Mode
Threaded Mode