Is it possible to detect when a TV is turned on or off when connected to Apple TV?

This may vary depending on TV/HDMI cable etc, but is there a reliable way to detect if a TV is powered off?

The reason for this is to stop playback of video when this change is detected.


Ironically when I turn the TV on it triggers calls to appDelegates applicationWillResignActive and applicationDidBecomeActive ( and as its a TVML app, calls to App.onSuspend and App.onResume).