NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 75 76 77 78 79 … 93 Next »
Recording Service Refresh

 
  • 0 Vote(s) - 0 Average
Recording Service Refresh
jsather
Offline

Junior Member

Posts: 3
Threads: 1
Joined: Mar 2005
#1
2005-03-10, 07:34 PM
Hi-

I placed an entry into the RECORDING_SCHEDULE table and started waiting on the recording (35 minutes before the show was supposed to start). It didn't happen. I restarted the service and it started recording. Is the Recording Service not refreshing itself? Another thread indicated that it refreshed every 10 minutes or so. Is this true or do I need to restart the service everytime I add an entry? Is there a way to adjust the refresh rate?

Thanks,
Joel
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2005-03-10, 07:49 PM
If you use the exposed ScheduleHelper API for creating the recording, then the recording service will pick it up immediately, otherwise I'm not sure.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#3
2005-03-10, 08:42 PM
try to add/access everything via subs interfaces. That way if he changes something you get it automatically.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
jsather
Offline

Junior Member

Posts: 3
Threads: 1
Joined: Mar 2005
#4
2005-03-10, 09:42 PM
I'll try using the API to add to the schedule. I was going through the code from the CDKScheduler and noticed that it seemed to do quite a few things against the table directly.

Does the ScheduleHelper API actually know where to find the database or do I need to instantiate something first and setup the pointer?

Thanks
jsather
Offline

Junior Member

Posts: 3
Threads: 1
Joined: Mar 2005
#5
2005-03-11, 02:33 AM
Never mind about all this. I figured out what was probably causing the problem. I had WinSQL open while I was trying to get the schedule to take. It was blocking access to the database file from the scheduler.

-Joel
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-03-11, 04:14 AM
I typically recommend using the Plugin API where at all possible. The main reason that the CDK Scheduler does a lot of querying of the database on it's own is because there was no quick and easy way to get some of the information that was needed. In order to keep memory usage down, and to provide as quick a look up as possible for a narrow set, it is necessary to do your own API work. Also, prior to this last release of GBPVR there was a big bug with the ScheduleHelper and the LoadRecordings method. If you had over 65 recordings scheduled, GBPVR wouldn't load any more records.

So, if the GBPVR plugin API does what you need, then use that, you'll have less problems if Sub changes the underlying database structure than if you read the database directly.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#7
2005-03-11, 04:20 AM
There is going to be a time when I regret making calls directly to the DB instead of using the API, but since I might have to change something that is recorded to conflict and vice-vers I could not use the API directly. If two programs overlap, the API will make the first recorded and the second in conflict... or the opposite (I forget). I needed more control.
Also I don't think there is a way to retrieve capture sources for a particular channel.

Nonetheless, if you can use the API, then you should.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 398 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 273 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 909 2023-11-09, 02:14 PM
Last Post: mvallevand
  is there a service?method which returns listings for multiple channels? reven 16 6,793 2022-04-11, 04:30 PM
Last Post: mandai
  Recording direct to GPhotos API rgonzalez 0 1,394 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,882 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,417 2019-08-15, 09:34 PM
Last Post: sub
  NextPVR "Service" Backend? jcole998 5 4,731 2018-05-24, 01:17 PM
Last Post: jcole998
  Unexpected result when deleting a pending recording scJohn 5 3,631 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,724 2017-03-02, 03:13 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode