Description
When using the application to play videos on Android TV (NVIDIA Shield), the system screensaver activates after a period of inactivity, even though video playback is ongoing. This interrupts playback and overlays the screensaver on top of the running video.
From a user perspective, the device is clearly in active use, but the application does not appear to signal this to the Android TV system.
Environment
Device: NVIDIA Shield TV
OS: Android TV
App version: v.1.0.2
Installation method: Sideloaded APK via ADB
Steps to Reproduce
- Launch the application on NVIDIA Shield TV
- Start video playback
- Do not interact with the remote control
- Wait until the system screensaver timeout is reached
Expected Behavior
The screensaver should not activate while a video is playing.
During active media playback, the application should keep the screen awake and prevent the system screensaver from starting.
Actual Behavior
The Android TV screensaver activates after the configured timeout and overlays the running video, even though playback is still active.
Additional Information
The issue does not occur when the system screensaver is disabled globally.
This suggests the app does not request a wake lock or set FLAG_KEEP_SCREEN_ON during video playback.
Other media apps on Android TV correctly prevent the screensaver in the same environment.
Suggested Fix
During video playback, the app should explicitly prevent the screen from sleeping, for example by:
Setting FLAG_KEEP_SCREEN_ON on the playback activity, or
Acquiring a WakeLock while media playback is active
Impact
This significantly affects usability for longer videos, as playback is interrupted without user interaction.
Description
When using the application to play videos on Android TV (NVIDIA Shield), the system screensaver activates after a period of inactivity, even though video playback is ongoing. This interrupts playback and overlays the screensaver on top of the running video.
From a user perspective, the device is clearly in active use, but the application does not appear to signal this to the Android TV system.
Environment
Device: NVIDIA Shield TV
OS: Android TV
App version: v.1.0.2
Installation method: Sideloaded APK via ADB
Steps to Reproduce
Expected Behavior
The screensaver should not activate while a video is playing.
During active media playback, the application should keep the screen awake and prevent the system screensaver from starting.
Actual Behavior
The Android TV screensaver activates after the configured timeout and overlays the running video, even though playback is still active.
Additional Information
The issue does not occur when the system screensaver is disabled globally.
This suggests the app does not request a wake lock or set FLAG_KEEP_SCREEN_ON during video playback.
Other media apps on Android TV correctly prevent the screensaver in the same environment.
Suggested Fix
During video playback, the app should explicitly prevent the screen from sleeping, for example by:
Setting FLAG_KEEP_SCREEN_ON on the playback activity, or
Acquiring a WakeLock while media playback is active
Impact
This significantly affects usability for longer videos, as playback is interrupted without user interaction.