Kodi Community Forum

Full Version: [Android] Video paused when switching off TV or going to HOME screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Some weeks back, whenever I pressed the HOME button to get back to the Android TV HOME screen or when swichting off the TV screen, video playback was stopped. Some nightly changed that. Now it is being paused which in case of live TV via DVBViewer PVR Add-on means that timeshift recording is started, hammering the USB pen drive which is not what I want. Can this behavior be changed by the user or is the only way to achieve that by manually executing a stop before switching off the TV (or going to the Android TV HOME screen)?
Are you using a Nvidia Shield?
It is a Sony Android TV. But behavior should be the same for SHIELD!?
I installed latest nightly now and did some more testing...


(1) When switching off the Sony Android TV:

Code:
10:01:00.213 T:18446744072351541552   DEBUG: CAnnouncementManager - Announcement: OnPause from xbmc
..
10:01:00.328 T:18446744071811164464    INFO: AddOnLog: DVBViewer Client: Timeshift: Started
..
10:01:06.870 T:18446744071811164464   DEBUG: AddOnLog: DVBViewer Client: Timeshift: Stopped
..
10:01:06.879 T:18446744072351541552   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc

So playback is indeed stopped (5s after being paused) when switching off the TV which is good. Timeshifting is enabled for those 5s.


(2) When pressing the HOME button on the Sony Android TV remote to put Kodi into the background:

Code:
10:11:58.791 T:18446744072351541552   DEBUG: CAnnouncementManager - Announcement: OnPause from xbmc
..
10:11:58.902 T:18446744071807973680    INFO: AddOnLog: DVBViewer Client: Timeshift: Started


I think the behavior is OK. At least the USB pen drive does not get hammered indefinitely with Timeshift data when switching off the TV. Still I have to be careful when pressing the HOME button. Or is it possible to change the behavior, that when I press the HOME button, video playback is stopped?
Same happens when plugging in a USB pen drive and the Android "open with" dialog is opened, putting Kodi in the background.

Unfortunately the events that Kodi receives when switching off the TV or pressing the HOME button are not logged. At least I could not find them...