NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 7 8 9 10 11 … 93 Next »
Schedule a recording

 
  • 0 Vote(s) - 0 Average
Schedule a recording
ioan
Offline

Member

Posts: 80
Threads: 12
Joined: Sep 2006
#1
2011-01-31, 06:37 PM
(Sorry for the crossposting, this post was meant to be here not on "GB-PVR Support (legacy)"Smile

How do I schedule/start a recording? Let say I have the following record in PROGRAMME oid 14792. Do I just write all the infos in RECORDING_SCHEDULE?
I'm working on a Roku channel that will play all the recordings and I want to make it search programs and schedule / cancel recordings. Also, is there a way to get some gb-pvr or npvr art (images, icons, etc) to make the Roku channel looks like it belongs with GB/N-PVR?

Thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#2
2011-01-31, 06:53 PM
Quote:How do I schedule/start a recording? Let say I have the following record in PROGRAMME oid 14792. Do I just write all the infos in RECORDING_SCHEDULE?
I'm working on a Roku channel that will play all the recordings and I want to make it search programs and schedule / cancel recordings.
GBPVR included a command line schedule.exe that could be used to schedule recordings. If you run it with no parameters it'll give example command lines. It doesnt accept a programme oid, but you can specify the start time, duration, name, channel etc.

Remember GBPVR is a dead end though. You cant even download it from here any more. Basing your solution on NPVR would be better in the long run.

Quote:Also, is there a way to get some gb-pvr or npvr art (images, icons, etc) to make the Roku channel looks like it belongs with GB/N-PVR?
GBPVR/NPVR doesnt embed artwork etc, its all just files. It'll look for 'folder.jpg' in the same file as a recording, or a some_recording_filename.jpg. For channels icons, see C:\Users\Public\NPVR\Media\Channels in NPVR. Similar directory in GBPVR install in 'program files'.
ioan
Offline

Member

Posts: 80
Threads: 12
Joined: Sep 2006
#3
2011-01-31, 07:00 PM
sub Wrote:Remember GBPVR is a dead end though. You cant even download it from here any more. Basing your solution on NPVR would be better in the long run.

Of course, I will make it work with both, right now I'm using gbpvr because I'm more familiar with it and I'm spending my time learning how to develop for Roku. Does NPVR provide the same command line schedule.exe? I would prefer to write directly to the database if that's an option.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#4
2011-01-31, 07:51 PM
ioan Wrote:Does NPVR provide the same command line schedule.exe?
No, but I could probably add one reasonably quickly when you're ready for it, using the same command line.

Quote:I would prefer to write directly to the database if that's an option.
To be honest, thats probably the less preferrable option in my book. The app has logic to know about available devices, and what types of recordings can happen at the same times on the available devices, and does all these types of checks before it'll determine it's ok to write to the database. It'd be virtually impossible for you to implement this same logic without a hell of a lot more information. Also, if you just write to the database, you'd need to restart the recording service to have it reload the new data from the database.
ioan
Offline

Member

Posts: 80
Threads: 12
Joined: Sep 2006
#5
2011-01-31, 08:02 PM
sub Wrote:No, but I could probably add one reasonably quickly when you're ready for it, using the same command line.

I'll let you know when I'm ready to switch to NPVR for this.

sub Wrote:To be honest, thats probably the less preferable option in my book.

Fair enough. If it was as easy as writing in the RECORDING_SCHEDULE table, that would have been an option, but if it takes bells and whistles to schedule, it is better to have an application that is maintained by you for this.

Thanks.
ioan
Offline

Member

Posts: 80
Threads: 12
Joined: Sep 2006
#6
2011-01-31, 08:21 PM
One more question, is the Web server that NPVR uses capable of handling isapi dlls?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#7
2011-01-31, 11:07 PM
No it's not.
ioan
Offline

Member

Posts: 80
Threads: 12
Joined: Sep 2006
#8
2011-02-01, 12:05 AM
Looks like the schedule.exe won't help me. The application that is communicating with Roku is an ISAPI dll handled by Apache. Apache - by default - won't allow any kind of external applications to be started, so schedule.exe is out of question for now. I want to make it as easy as possible for the user to install and use, so I don't want them to mess with the service and users rights.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#9
2011-02-01, 12:18 AM
You can probably use UncleJohnsBand's NEWA web services to schedule the recording. ie, just making an http request.
ioan
Offline

Member

Posts: 80
Threads: 12
Joined: Sep 2006
#10
2011-02-11, 06:40 PM (This post was last modified: 2011-02-11, 06:46 PM by ioan.)
sub Wrote:You can probably use UncleJohnsBand's NEWA web services to schedule the recording. ie, just making an http request.

I built a stand alone application for this that includes the web server for streaming the videos to Roku, this way I can run the schedule.exe to schedule a recording. The problem I run in to is that the schedule.exe doesn't put any informations from PROGRAMME table into RECORDING_SCHEDULE about the show. This is not good, because I wanted to report back to Roku when a show is already scheduled, so the user doesn't have to do it twice... I will really like to have the schedule.exe accept an oid, and have in RECORDING_SCHEDULE table the info just like when you schedule the recording from gb or n-pvr.
Pretty please? ;; )

Here is how the Roku application is going to work. You will have a channel on Roku called NextPVR (or GB-PVR). When you select it you will have the option to search for a program or watch what's already recorded. If you what to watch shows already recorded you will have a list of shows, and for each show a list of episodes (thanks to pvruser). You can watch any prerecorded shows.
If you want to schedule a recording, you select search and then you can type in the name of the show (using roku remote and the on screen keyboard), a list of shows will be created on the screen while you type. When you see the show you are looking for you select it and then you will get a list of all the times and channels the show is on. You select one that you want to record, and the gb-pvr will schedule the recording for you. This way you don't have to have a computer in the living room next to the tv and you don't even need a dedicated computer, I have gb-pvr on my gaming machine ... and sometimes is acutally recording while I'm playing or working.

Can we get schedule.exe accept oid? Pleaseeee....

If you explain to me how to start a recording, I'll do the work and I'll send you the code to check it and I'll keep that part as closed source (if this is required).
« 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 575 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 393 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,038 2023-11-09, 02:14 PM
Last Post: mvallevand
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 2,102 2020-07-14, 10:13 PM
Last Post: scJohn
  Recording direct to GPhotos API rgonzalez 0 1,472 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,001 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,044 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,787 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,826 2017-03-02, 03:13 PM
Last Post: mvallevand
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 33,789 2015-08-20, 05:11 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