NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
How to get edl information for videos in a web client?

 
  • 0 Vote(s) - 0 Average
How to get edl information for videos in a web client?
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#1
2014-12-06, 08:35 AM
For my Smart TV app I use “/service?method=recording.edl&recording_id=nn” to get edl entries for a recording.
Videos on the other hand don't have a recording_id, am I right?
How do I get edl entries for videos where filename and streaming url are about the only distinctive known properties?

/Fred
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#2
2014-12-06, 02:19 PM
Try http://ip:port/service?method=recording....ing_id=### I don't think it needs a sid= but you probably pass it.

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#3
2014-12-06, 04:53 PM
mvallevand Wrote:Try http://ip:port/service?method=recording....ing_id=### I don't think it needs a sid= but you probably pass it.

Martin

Sorry Martin, I don't get it!
When a video (that is not a recording) is played from the video library I don't get a recording_id from /activity, am I supposed to?

/Fred
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#4
2014-12-06, 04:59 PM
fred250 Wrote:Sorry Martin, I don't get it!
When a video (that is not a recording) is played from the video library I don't get a recording_id from /activity, am I supposed to?

/Fred

Sorry I misread sub doesn't serve videos to Kodi just recordings, you will need a new feature.

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#5
2014-12-06, 06:12 PM
mvallevand Wrote:Sorry I misread sub doesn't serve videos to Kodi just recordings, you will need a new feature.

Martin

Luckily it's Christmas soon. Hope I've been good enough.
Let see...
...Santa, I wish for a new feature retrieving edl entries based on filename.

While wishing I'd like a log feature, where I can send debug information that end up in a log file on the server. It may be the web.log or maybe an new file client.log.

/fred
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2014-12-06, 07:43 PM
Yep, I can add those for the next release.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#7
2014-12-06, 08:03 PM
I don't use this yet because Kodi doesn't support http edl's but if I did for web client rather than a new API call maybe just include a url in the return json on Select like you do with Resume and then we don't need to go the 404 route.

For logging it would be especially nice if we get our own webclient.log instead of npvr.log like you do for the MVP.log

Another users posted a wish here today http://forums.nextpvr.com/showthread.php...post482242

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#8
2014-12-07, 12:13 AM
Thanks sub.

Regarding logging, a separate webclient.log as Martin suggests is my preferred option.

When the edl method for videos is implemented I need the XML option since for the existing edl method the json data won't parse.
I haven't had time to figure out what is wrong with the json data structure so I can't suggest any fix (yet).
For now I have to stick with xml on this one.

@Martin
I don't fully understand your suggestion.
An edl-url may come in handy, but whats with the 404 thing (page-not-found), please elaborate.
In case of an edl-url in the /activity-data it needs to be there even if there is no edl data present yet since comskip may not have created it yet if it is an in-progress recording.
I may be wrong but I don't recall ever getting a 404-error using the current edl-method but the log may state “file not find” for a missing edl-file.


/Fred
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#9
2014-12-07, 12:22 AM
I use the JSON methods perhaps you use XML but in the action for selecting a file is

Code:
{u'recording_title': u'2 Broke Girls', u'recording_description': u'Caroline comes across an abandoned bicycle and wants to use it to start a delivery service for the cupcake business -- but finds out that Max never learned how to ride a bike.', u'url': u'/stream?client=KNEWA0xc8bfd398405L&f=C:\\recordings\\2 Broke Girls\\2 Broke Girls.S04E04.And the Old Bike Yarn.ts', u'recording_subtitle': u'And the Old Bike Yarn', u'recording_name': u'2 Broke Girls', u'recording_resume': u'53', u'recording_id': u'12767', u'recording_duration': u'1852'}

I get the resume point and the duration so the url to the edl makes sense. Otherwise I'd need to make a call get the 404 for every user who doesn't use comskip, when it could be empty if not found. Your right the api calls might not by 404 sub has is own error notation same idea though.

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#10
2014-12-07, 12:45 AM
I tried to use JSON for the edl-method but something is not working and the response-data gets trapped in the browser. I use JSON for everyting else since it is much easier to deal with in javascript. Anyway that has nothing to do with my question.

I suspected your aim was to not request for edl data when there was none. I agree that is best practice.
But how can you tell that there won't be any in 5 min when the in-progress recording is ready and comskip has been run?

Currently my app is requesting edl-data once every minute or so, I think I get a 200 even when there is no data.

/Fred
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Developing Android TV client fred250 2 1,757 2020-11-16, 06:33 PM
Last Post: fred250
  Web Client: Slow with separate thread and date not obscured cncb 32 15,695 2016-10-10, 02:01 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,200 2015-09-29, 08:07 PM
Last Post: cncb
  Remote client logout timeout. mvallevand 2 2,504 2014-10-28, 12:55 AM
Last Post: mvallevand
  Web services information psycik 22 7,504 2013-12-05, 10:31 PM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,040 2013-07-03, 01:39 AM
Last Post: mvallevand
  On-the-fly transcoding for streaming recordings / videos bgowland 6 3,982 2012-06-03, 03:10 AM
Last Post: bgowland
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,847 2012-02-05, 10:29 AM
Last Post: bgowland
  Render order in Videos Jaggy 13 4,333 2011-10-12, 11:20 AM
Last Post: mvallevand
  Client - Tuner plugins mvallevand 53 13,407 2011-09-17, 07:19 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