NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 3 4 5 6 7 … 193 Next »
playback position

 
  • 0 Vote(s) - 0 Average
playback position
artmetz
Offline

Senior Member

NW Montana
Posts: 367
Threads: 68
Joined: Dec 2016
#1
2022-03-04, 08:37 PM
Something to consider. When I encounter a hang or crash, often the playback position isn't stored. Any chance it could be stored every 30-60 seconds so I don't have to figure out where the recording was at?
Art
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2022-03-04, 11:21 PM
Yep - sounds reasonable.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,870
Threads: 954
Joined: May 2006
#3
2022-03-05, 04:26 AM
Could you do this via a client API that nlite can use rather then brute force since the majority of UI clients are not crashing? I am very worried about the potential for database locks that will happen because of this largely unnecessary change.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#4
2022-03-05, 07:20 AM
I don't see it as a work around for crash. I'd already considered adding this in the past, when I'd realised how good Netflix was at remembering approximately where you were up to, even if you powered off or killed it unexpectedly. That is a useful feature to have.

I'll have nextpvr.exe and UI clients it do it automatically, without the needs for the clients to add anything. I honestly don't think this functionality will cause you any issues, but if you want it, I can provide you a way to disable it.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,870
Threads: 954
Joined: May 2006
#5
2022-03-05, 03:51 PM
The concept is fair but I have been noticing a definite increase in disruption to video playback when NextPVR does background tasks such as scheduling and starting recordings etc and having all Kodi pvr.nextpvr clients receive a lastupdated message every 30 seconds forcing a full recording list update, seems rather extreme. A database lock every 30 seconds is also risky for other reasons.

If it can optimized to perhaps handle the session is not responding, when a UI client sessions stops requesting x-activity during video playback then it makes more sense. Perhaps make NextPVR and nlite stop playback on exit (other than power off) can also help.

Martin
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#6
2022-03-05, 05:20 PM
(2022-03-05, 03:51 PM)mvallevand Wrote: The concept is fair but I have been noticing a definite increase in disruption to video playback when NextPVR does background tasks such as scheduling and starting recordings etc and having all Kodi pvr.nextpvr clients receive a lastupdated message every 30 seconds forcing a full recording list update, seems rather extreme.  A database lock every 30 seconds is also risky for other reasons.
I would agree that every 30 (or even 60) seconds seems a bit excessive as a "backup" option--particularly given the way NextPVR treats this as a "full update" to a recording's information. As purely a backup, I would be fine with it autosaving as infrequently as something like 5 minutes because resuming to that point, I could easily use the 1 minute skip forward to very quickly get back to where I was.
Quote:If it can optimized to perhaps handle the session is not responding, when a UI client sessions stops requesting x-activity during video playback then it makes more sense.    Perhaps make NextPVR and nlite stop playback on exit (other than power off) can also help.
This sort of an approach where you only update the database in a "known, bad situation" does seem like a better option and more in line with NextPVR's current philosophy about updates to the recording information.
artmetz
Offline

Senior Member

NW Montana
Posts: 367
Threads: 68
Joined: Dec 2016
#7
2022-03-06, 01:15 PM
Just my 2 cents. I don't want to over complicate this, only suggest an approach for future consideration since database locks might be an issue.
I've had to deal with low priority/non critical database updates in past projects. One way to do this is to uncouple the request and place it in a low priority queue that was serviced at idle time or less frequently by a timer. In this case you only care about one (the last) request (maybe as a singleton).
Our queue was in the backend, so the client was only responsible for placing requests in the queue, uncoupling it from the database.
I don't know if you are familiar with design patterns, but there likely is one (or a combination) for this use case.

Seems like I also did this for logging so that the client wasn't I/O bound, but the entire log would be written out regardless of the client state.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Ability to adjust the playback speed Rage321 4 2,112 2021-05-05, 06:25 PM
Last Post: sub
  Better playback of radio recordings JP23 7 3,912 2018-06-17, 07:26 PM
Last Post: pBS
  Allow enter to pause / resume playback W3bbo 0 1,361 2018-05-21, 10:26 AM
Last Post: W3bbo
  Playback Timeline jcole998 2 1,736 2018-03-10, 02:15 PM
Last Post: jcole998
  Alternative (additional) playback keyboard controls W3bbo 1 2,545 2016-06-28, 08:54 PM
Last Post: W3bbo
  High-speed and Slow-motion playback NumberFive 1 1,678 2015-03-16, 12:10 AM
Last Post: gEd
  Buffered playback for client machines? digidad 3 2,015 2013-01-25, 05:42 PM
Last Post: digidad
  Start initial playback after padding cncb 10 3,835 2012-03-04, 03:24 AM
Last Post: stustunz
  Visual indicator of position in list Elmo Putney 1 1,489 2011-04-18, 09:09 PM
Last Post: imilne
  TV guide option to use VLC for playback and recording. robert2011 3 5,130 2011-04-11, 12:32 AM
Last Post: robert2011

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

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

Linear Mode
Threaded Mode