How to detect Input source on Android TV?

Is there a way of detecting the current input source for an Android TV - ie TV/DVD? As far as I can see the Android TV integration only allows you to identify the current app, and the source/app name attributes remain the same when you switch to DVD.

That’s not an information provided by AndroidTV, but by the TV itself, e.g. the Bravia integration.
I have myself a Sony TV with Android TV and I have both the AndroidTV and Bravia integrations.

Makes sense - thanks. :grin: