Feature #4259
Close PVR stream(subscription) after X time if no activity (sleep)
0%
Description
Often in my house the TV is turned off with out stopping the stream (live TV in Kodi), most usually at night... meaning the stream is continually playing and writing to the buffer for time shifting. (i use Time shifting to RAM instead of disk for this very reason)
I don't believe there is currently anyway to automatically stop playing "LiveTV" (although i do believe Kodi has an unofficial add-on). It would be great to be able set a value that would stop a stream if there was no activity (if a channel hasn't been changed) . Maybe to allow some flexibility you could set a time windows for activation ( as i guess Radio/TV could be played for longer periods during the day (i often have the radio on all day when i'm working for example).
Settings could be:
Time start:
Time Finish:
hours:
so for example:
i could set the time to start at 23:00 and end at 07:00 and hours: 4
Any stream still active for => 4 hours during those hours would automatically close. Not sure if the backend could send a notification to each client/or client playing the stream?
History
Updated by C K over 7 years ago
Ash Guest wrote:
Often in my house the TV is turned off with out stopping the stream (live TV in Kodi), most usually at night... meaning the stream is continually playing and writing to the buffer for time shifting. (i use Time shifting to RAM instead of disk for this very reason)
I don't believe there is currently anyway to automatically stop playing "LiveTV" (although i do believe Kodi has an unofficial add-on). It would be great to be able set a value that would stop a stream if there was no activity (if a channel hasn't been changed) . Maybe to allow some flexibility you could set a time windows for activation ( as i guess Radio/TV could be played for longer periods during the day (i often have the radio on all day when i'm working for example).
Settings could be:
Time start:
Time Finish:
hours:so for example:
i could set the time to start at 23:00 and end at 07:00 and hours: 4Any stream still active for => 4 hours during those hours would automatically close. Not sure if the backend could send a notification to each client/or client playing the stream?
What about the sleep timer in Kodi: http://kodi.wiki/view/Add-on:Sleep_Timer
Updated by Joe User over 7 years ago
I think it is best to handle on the client side - especially because clients may try to reconnect if a stream is stopped. If you are using a Raspberry Pi, it should support CEC which is able to stop Kodi when the TV is turned off. Probably other devices support this also...
Updated by Ash Guest over 7 years ago
Thanks
I can never get the official addon to work, I've just tested it again this morning and my TV is still playing after setting it to 30 min.... 2 hours later....
Yes i have also thought of CEC as well, but for whatever reason setting it to "stop play back" when TV is turned off, leaves kodi in a black screen when switched back on, looks like the GUI crashes as i can still hear sound when i use the remote, i then have to reboot... my Nvidia Shield cant even detect CEC on my Panasonic TV downstairs, maybe something to do with the age of the TV, but hey, it still churns out HD content without any issues so until i turn it on one morning and get nothing i'm not going to replace it.
Anyway, i guess these are all "client issues" and here's not the correct place to discuss. My point to the request however was to acknowledge that this could be done on the client, but it very much depends on what clients are being used e.g Kodi (LE on RPI and Android on Nvidia S are 2 flavors that are used in my house)... not to mention laptops, iPads, heck i even streamed from my mobile phone the other day when i was stuck on the train!
I just felt it could be controlled centrally on the server and then there would be no need to worry about Addons, CEC versions or TV's that dont communicate for whatever reason....
thanks for the suggestions/feedback .