问题
We required HDMI info in Nodejs and Electron. If any HDMI is connected with system then we have to do some specific task with the Electron application.
回答1:
You can give a try with @senzil/cec-monitor package or simmilar to monitor the HDMI devices.
来源:https://stackoverflow.com/questions/54553635/how-to-detect-hdmi-device-is-connected-with-node-js