NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 48 49 50 51 52 … 93 Next »
How to save an new recordingschedule

 
  • 0 Vote(s) - 0 Average
How to save an new recordingschedule
hoefkko
Offline

Junior Member

Posts: 10
Threads: 2
Joined: Sep 2006
#1
2006-10-21, 10:44 PM
I have next lines of code (part of larger code block)

GBPVR.Public.Programme pr;
pr = GBPVR.Backend.Common.ScheduleHelper.getInstance().GetProgrammeByOID(Progid);
GBPVR.Public.ScheduledRecording rec;
rec = GBPVR.Backend.Common.ScheduleHelper.getInstance().SheduleRecording(pr.getChannelOID(), pr.getStartTime(), pr.getEndTime(), pr, GBPVR.Public.ScheduledRecording.TYPE_RECORD_ONCE, GBPVR.Public.ScheduledRecording.GROUP_NONE, null);

Everything is working correctly, the rec variable is created correctly, but I don't know how to save the newly created ScheduledRecording object to the database.
Or should I do it in a complete other way?

Can somebody help me please ?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#2
2006-10-22, 01:48 AM
Its already saved. It was saved when you called ScheduleHelper.SheduleRecording().
hoefkko
Offline

Junior Member

Posts: 10
Threads: 2
Joined: Sep 2006
#3
2006-10-22, 04:04 PM
Sub,

that's strange, the record is not added to the database.

The application is a simple web app so I can schedule recordings from my transgear dvx-500e dvd player.

Could it be it has something to do with the web app not being in the same directory as GBPVR ?

thanks.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#4
2006-10-22, 04:19 PM
Does it return null or a valid ScheduledRecording? If its null it didnt get saved, otherwise it did (and you didnt look in the right place).
hoefkko
Offline

Junior Member

Posts: 10
Threads: 2
Joined: Sep 2006
#5
2006-10-22, 09:18 PM
Problem solved.
I had to give the ASP.NET user account sufficient rights to the gbpvr directory.

btw Sub, thanks for the great program.

PS I had some problems with wake up of my computer. Screen kept blank, no recording etc..
I wrote a little windows service that calls the SetThreadExecutionState on a wake up power event, to turn on the screen and disk and the problem is solved.
Maybe it's a good idea to add a call to the SetThreadExecutionState from your program when the computer wakes up.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  couple of issues with recording.recurring.save method reven 10 4,644 2014-01-03, 11:11 PM
Last Post: reven
  Save a UiStatic out as a jpg McBainUK 4 1,817 2007-11-16, 03:23 PM
Last Post: McBainUK
  Looking for utility to save a frame as a jpeg Peter K 0 1,148 2005-01-12, 10:25 PM
Last Post: Peter K

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

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

Linear Mode
Threaded Mode