question

Prakash avatar image
Prakash asked

Is there any event FireTV app can receive? when TV turned off

Is there any event my App on FireTV can receive, when app is in foreground and user turns off TV (FireTV is on and app is in foreground).
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sinistar avatar image
Sinistar answered
Based on the fact that when I turn the TV off the Fire hasn't done anything when I turn it back on, I'd say it doesn't matter. You mileage may vary.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jon R. Helms avatar image
Jon R. Helms answered
Sort-of/yes, just found something in the docs while looking for another problem. https://developer.amazon.com/public/solutions/devices/fire-tv/docs/amazon-fire-tv-sdk-frequently-asked-questions Q: How should I handle the TV being turned off/disconnected? A: The expected behavior for an HDMI disconnect is different for audio and video: ◾Apps that play video should pause playback when the TV is turned off or disconnected. When the TV output returns, playback should remain paused until the user presses PLAY. ◾Apps that play audio can continue to play if the TV is unavailable, but the device must must be connected with a TOSLINK (digital optical) audio connection for the audio to be heard. Listen for the AudioManager.ACTION_AUDIO_BECOMING_NOISY broadcast intent to test for HDMI changes.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.