We are developing a video streaming website and have a business requirement to stop playback, if any external display (e.g. TV) is connected to the PC through HDMI.
Is it possible to check this in javascript?
I tried using Presentation API and Remote Playback API supported on browsers, but they seem to work only for "casting" and not for simple media "mirroring" through HDMI.
The w3c spec however specifies that the Presentation API is meant for 1-UA (User Agent) mode as well (simple mirroring through HDMI).
Somehow I am not able to use Presentation API to check if any display device is connected through HDMI or not.
Can anyone help me out with my query?