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 »
need some doc around service?methods

 
  • 0 Vote(s) - 0 Average
need some doc around service?methods
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2013-07-18, 09:33 PM
im wanting to know the service?method calls for the following

  1. Get the comskip times for a recording
  2. Schedule a recording, e.g. "All New on this channel" etc

the xbmc addon only shows you how to schedule a single recording instance, and doesn't support comskip (well i didnt see it in the source code).

if they're not currently available sub can you please add them. Preferable comskip should return an array of 2 digit values (start, end) in seconds, and schedule a recording should take a enum value of type, e.g. "All New Recordings" could be type 4, and "This day this timeslot" could be 3 (but match the actual enum values to the nextpvr gui, I dont have access to nextpvr atm to get the actual names/indexes ). I rather set a recording based on an enum value so I'm 100% certain when my app schedules a recording its the same as scheduling in nextpvr, and if nextpvr slightly changes how it schedules my app also schedules the same way. Also please add a call to get the enum values, e.g. service?method=Setting.RecordingScheduleTypes which returns a int/enum value and a name for it. So if new recording options are added/removed in the future, my app automatically gets the updated recording options.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,093
Threads: 957
Joined: May 2006
#2
2013-07-18, 10:48 PM
The comskip files is filename.edl (tab delimited) but it is currently not supported by port 8866 web server. You could fake it for testing by copying the edl to .txt and asking for it.

Martin
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2013-07-18, 10:58 PM
oh i thought it was available, assumed some clients were already using this.

i rather not do any parsing on the client side, I would prefer it if an array of values were returned. i have no clue how slow older bluray/tvs are and i dont want to do any unnecessary processing on the client side.

also, since im bugging sub to add stuff, is there any chance you could add json support as well as xml, json is faster and a lot easier to consume in javascript.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#4
2013-07-18, 11:13 PM
The most recent alphas of xbmc have added support for retrieving the comskip edl, so ill be adding support for these to nextpvr. I haven't looked into exactly what xbmc requires for this, but I'll check it out when I'm back in New Zealand.

I'll just give you a "maybe" on adding json. Time-permitting, I'm not adverse to the idea. I'd leave the xbmc client using the XML though.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2013-07-18, 11:20 PM
cheers sub, the standard way to return json would be to use the header
Code:
Accept: application/json
would also be nice if there was a &json=[true|1] parameter (easier to test in browser than setting a header). default should be left as xml just so nothing breaks.

when are you back in nz?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,093
Threads: 957
Joined: May 2006
#6
2013-07-18, 11:27 PM
Sub, the edl structure is loaded internally in xbmc so you can send what you want.

Code:
typedef enum
  {
    PVR_EDL_TYPE_CUT = 0, /*!< @brief cut (completly remove content) */
    PVR_EDL_TYPE_MUTE = 1, /*!< @brief mute audio */
    PVR_EDL_TYPE_SCENE = 2, /*!< @brief scene markers (chapter seeking) */
    PVR_EDL_TYPE_COMBREAK = 3 /*!< @brief commercial breaks */
  } PVR_EDL_TYPE;

  typedef struct PVR_EDL_ENTRY
  {
    int64_t start; // ms
    int64_t end; // ms
    PVR_EDL_TYPE type;
  } ATTRIBUTE_PACKED PVR_EDL_ENTRY;

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#7
2013-07-18, 11:58 PM
Quote:when are you back in nz?
I'm in the states. I'm back in NZ in two and a half weeks
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#8
2013-07-20, 07:26 AM
is there any recording methods available via "service?method" ? xbmc has a very very very basic one,
Code:
/service?method=recording.save&name=%s&channel=%d&time_t=%d&duration=%d
but is there a better one, where you can pass in a epg_event id?

other clients do use this service correct? its not just xbmc? or is xbmc using every service method?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#9
2013-07-21, 09:59 PM
From memory there are some other calls but I'm away from my laptop for the weekend. I'll look tomorrow.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#10
2013-07-21, 10:00 PM
cheers sub.
« 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
  is there a service?method which returns listings for multiple channels? reven 16 7,258 2022-04-11, 04:30 PM
Last Post: mandai
  NextPVR "Service" Backend? jcole998 5 4,884 2018-05-24, 01:17 PM
Last Post: jcole998
  Transcoding service mvallevand 27 12,479 2016-08-26, 07:43 PM
Last Post: sub
  Time to make Touch web Service less experimental fred250 106 29,207 2014-06-15, 09:13 PM
Last Post: fred250
  New web service clarification needed bgowland 6 3,313 2013-10-19, 02:36 AM
Last Post: bgowland
  [REQ] Additional web service API calls reven 26 8,510 2013-08-31, 10:08 PM
Last Post: mvallevand
  getting recurring recordings from service?method API? reven 2 1,993 2013-08-03, 10:50 PM
Last Post: reven
  Creating a Windows service McBainUK 8 3,497 2011-03-30, 03:29 AM
Last Post: mvallevand
  GB-PVR rec. service locks my classlib bgowland 6 2,679 2009-02-12, 11:32 PM
Last Post: sub
  restart recording service for a single tuner?? h0st1le 4 1,995 2008-10-27, 10:02 PM
Last Post: h0st1le

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

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

Linear Mode
Threaded Mode