NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Lease Renewal

 
  • 0 Vote(s) - 0 Average
Lease Renewal
jcole998
Offline

Posting Freak

New York, USA
Posts: 856
Threads: 186
Joined: Jun 2015
#1
2021-04-22, 04:00 PM
I am working with live TV and would like to know how the lease renewal mechanism works. In particular, does this "handshake" involve the device providing live TV? What messages, if any, are exchanged between the NextPVR server and the device?

Tried searching with Bing but got nothing relevant.

Thanks
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,809
Threads: 954
Joined: May 2006
#2
2021-04-22, 04:10 PM
It depends on which of the many API's you use. For the general /live API with no timeshifting it is generated by the server and developers and users don't have to worry about it.

Is there a specific question or issue this applies too?

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,643
Threads: 767
Joined: Nov 2003
#3
2021-04-22, 05:26 PM
(2021-04-22, 04:00 PM)jcole998 Wrote: I am working with live TV and would like to know how the lease renewal mechanism works. In particular, does this "handshake" involve the device providing live TV? What messages, if any, are exchanged between the NextPVR server and the device?
It's effectively just used as a mechanism for the client to regularly tell the server "I'm still using the device". If it doesn't get one of these lease renewals for more than 10 seconds, it assumes something has gone wrong on the client end, and to free up the device (like the client has crashed while streaming live tv, and is no longer in a state where it can explicitly free up the server etc).
jcole998
Offline

Posting Freak

New York, USA
Posts: 856
Threads: 186
Joined: Jun 2015
#4
2021-04-22, 06:27 PM
(2021-04-22, 05:26 PM)sub Wrote:
(2021-04-22, 04:00 PM)jcole998 Wrote: I am working with live TV and would like to know how the lease renewal mechanism works. In particular, does this "handshake" involve the device providing live TV? What messages, if any, are exchanged between the NextPVR server and the device?
It's effectively just used as a mechanism for the client to regularly tell the server "I'm still using the device". If it doesn't get one of these lease renewals for more than 10 seconds, it assumes something has gone wrong on the client end, and to free up the device (like the client has crashed while streaming live tv, and is no longer in a state where it can explicitly free up the server etc)

That's makes sense but it only seems to work if the server is operating the device. If the server is not operating the device as with an extra device, how doe the extra device know when the user has stopped watching?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,809
Threads: 954
Joined: May 2006
#5
2021-04-22, 07:30 PM
With an extra you would be more concerned about the expiry then the renewal which again, is why I am wondering what the real reason for this thread is.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,643
Threads: 767
Joined: Nov 2003
#6
2021-04-22, 08:47 PM
(2021-04-22, 06:27 PM)jcole998 Wrote: That's makes sense but it only seems to work if the server is operating the device. If the server is not operating the device as with an extra device, how doe the extra device know when the user has stopped watching?
I don't follow what you mean.
jcole998
Offline

Posting Freak

New York, USA
Posts: 856
Threads: 186
Joined: Jun 2015
#7
2021-04-23, 03:23 PM
I will post further information after I review how my extra device behaves with more testing which could take a while.

Sorry for the delay but I'd like to be sure I posting accurate data.

Thanks.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode