NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 24 25 26 27 28 … 93 Next »
ScheduleHelper.SheduleRecording returns Nothing

 
  • 0 Vote(s) - 0 Average
ScheduleHelper.SheduleRecording returns Nothing
MaidenQuebec
Offline

Junior Member

Posts: 46
Threads: 18
Joined: Aug 2008
#1
2008-09-10, 10:06 PM
Hi,

I am working on a small app using the Reminders and Recordings in GB-PVR.
I am using the SheduleRecording function and it always return Nothing (or null). I get Recording failed when I try to do the same with EWA.

The ScheduleHelper.getInstance works because I can read the guide et set and remove reminder. Is there a way to get more info about what's happening? I get no exception et nothing in the logs folder.

Thanks!

Public Shared Function ScheduleRecording(ByVal program As Programme) As Boolean
Dim ScheduledRec As ScheduledRecording
ScheduledRec = Schedules.SheduleRecording(program.getChannelOID, _
program.getStartTime, _
program.getEndTime, _
program, _
ScheduledRecording.TYPE_RECORD_ONCE, _
ScheduledRecording.GROUP_NONE, _
program.getTitle)

Return Not ScheduledRec Is Nothing
End Function
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 102,400
Threads: 741
Joined: Nov 2003
#2
2008-09-10, 10:09 PM
Are you doing this as plugin inside PVRX2.exe or GBPVRRecordingService.exe? GB-PVR's Plugin APIs only work inside these processes.
MaidenQuebec
Offline

Junior Member

Posts: 46
Threads: 18
Joined: Aug 2008
#3
2008-09-10, 10:23 PM
It's a stand alone application that uses GBPVRBackendCommon.dll and GBPVRPublic.dll.

I first create a ScheduleHelper instance (ScheduleHelper.getInstance). I call GetListingsForTimePeriod loop through the listings, get the programme object that match certain criteria. I then call CreateReminder, RemoveReminder or SheduleRecording functions. The remindeer functions worked but not the recording. It doesn't work in EWA neither.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 102,400
Threads: 741
Joined: Nov 2003
#4
2008-09-10, 10:27 PM
Sorry, but as I mentioned this in your other thread a few days ago, the API doesnt work outside of PVRX2.exe or GBPVRRecordingService.exe. You might of got lucky with some calls, but in general there is various environment stuff configured by those processes that will be missing when you try to do it in a standalone process. For example, the calls you mentioned above that work, are all ones that simply read/write the gbpvr.db3. When you try to schedule a recording, it needs to use the GB-PVR communication functions for talking to the Recording Service.
MaidenQuebec
Offline

Junior Member

Posts: 46
Threads: 18
Joined: Aug 2008
#5
2008-09-10, 10:29 PM
Ok, that makes sense. But I still don't get how EWA can make recording works (even though it doesn't work on my machine).
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 102,400
Threads: 741
Joined: Nov 2003
#6
2008-09-10, 10:34 PM
Does a GB-PVR log get automatically created for you process?
MaidenQuebec
Offline

Junior Member

Posts: 46
Threads: 18
Joined: Aug 2008
#7
2008-09-10, 11:58 PM
I never though about looking in my app folder...damn!

I found the problem, I just had to put the NativeUtilities.dll in my folder and it works fine now.

Thanks!

2008-09-10 19:50:03.027 VERBOSE [10] Looking for missing assembly in : NativeUtilities, Version=1.0.3071.28412, Culture=neutral, PublicKeyToken=null
2008-09-10 19:50:03.027 VERBOSE [10] Looking for missing assembly in plugin\common: NativeUtilities, Version=1.0.3071.28412, Culture=neutral, PublicKeyToken=null
2008-09-10 19:50:03.035 ERROR [10] Error creating: GBPVR.Backend.Common.AnalogHighDefRecordingSource
2008-09-10 19:50:03.035 ERROR [10] Exception has been thrown by the target of an invocation.
2008-09-10 19:50:03.036 ERROR [10] at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at GBPVR.Backend.Common.xc4f12ec3a8a4c96b.xb18f2a6855a29bd8(String xa17d71c8507c19de)
Ernie-c
Offline

Junior Member

Posts: 27
Threads: 2
Joined: Feb 2008
#8
2009-03-20, 12:21 PM
sub Wrote:Sorry, but as I mentioned this in your other thread a few days ago, the API doesnt work outside of PVRX2.exe or GBPVRRecordingService.exe. You might of got lucky with some calls, but in general there is various environment stuff configured by those processes that will be missing when you try to do it in a standalone process. For example, the calls you mentioned above that work, are all ones that simply read/write the gbpvr.db3. When you try to schedule a recording, it needs to use the GB-PVR communication functions for talking to the Recording Service.

It works when it's executed in it's own AppDomain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 4,428 2022-04-11, 04:30 PM
Last Post: mandai
  API request returns xml on error scJohn 4 1,206 2020-08-25, 05:41 PM
Last Post: sub
  SheduleRecording() locks database cb123 3 1,913 2009-02-14, 06:33 PM
Last Post: sub
  PluginHelper.GetSkinRootDirectory(); returns "skin" and not "skin2" reven 6 1,688 2009-02-11, 03:15 PM
Last Post: sub
  PluginHelperFactory.getPluginHelper().GetAudioPlay List sometimes returns a NULL ralphy 7 1,409 2007-11-05, 03:46 PM
Last Post: sub
  PluginHelperFactory.getPluginHelper().IsPlayListPa used returns false ralphy 1 928 2007-11-04, 03:21 PM
Last Post: sub
  getTunerStatus() returns string order by allocation_order index? Wakalaka 7 1,517 2007-05-02, 03:38 AM
Last Post: sub
  ScheduleHelper questions alibert 1 1,306 2006-08-18, 08:49 PM
Last Post: sub
  ScheduleHelper.GetListingsForTimePeriod alibert 0 888 2006-05-29, 01:18 PM
Last Post: alibert
  ScheduleHelper.LoadRecordingSchedule() and SQLite database locks alibert 0 937 2006-05-23, 05:36 PM
Last Post: alibert

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

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

Linear Mode
Threaded Mode