ST video player goes black when bluetooth keyboard sleep
I have a mini bluetooth keyboard, When it goes to sleep the device loses it's connection till interacted then reconnects,, While the device loses connection SmartTube's video player loses connection for a period of time same happens when the device reconnects, This happens only on SmartTube no other apps have shown signs of this issue.
I purchased another mini keyboard with both bluetooth and an 2.4Ghz RF USB Dongle to test, With the dongle plugged in and the keyboard going to sleep, Doesn't cause the video player to black out at all. Yet with bluetooth it does exactly the same as the previous keyboard, When the keyboard goes to sleep the bluetooth connection appears to be lost within ST and causes the video player to go black for about 2-5 seconds before coming back out of the black screen.
I don't know why I even bother posting issues on here anymore, Nobody ever replies back, Feels like I am wasting my time and talking to myself.
I can verify that this is a very annoying problem. When using a Bluetooth keyboard on a ShieldTV, after about 3 - 6 minutes, the screen will go black for a few seconds in the middle of the video that is playing. When you tap a key on the keyboard, it once again goes black. While watching longer videos, this can lead to multiple video cutouts.
The logcat file shows that shortly after android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED is sent, the onActivityResumed() method of Smart Tube is called. This, I suspect, unnecessarily re-initializes the screen resolution and/or video output system, which causes the issue.
- Steps to reproduce:
- Connect a Bluetooth keyboard, launch Smart Tube, play a video.
- Power-off the Bluetooth keyboard (which is a quick way of simulating a sleep).
-
Expected behavior: Nothing (as with Netflix and other apps). The video just keeps playing.
-
Actual behavior: The screen goes black and the audio is muted for a few seconds.