iEvgeny / cctv-viewer

CCTV Viewer - viewer and mounter video streams.
GNU General Public License v3.0
135 stars 19 forks source link

[Feature request] HDMI CEC-control #18

Open ratmonkey73 opened 3 years ago

ratmonkey73 commented 3 years ago

Would be helpful when used on TVs with a remote control. Presets 1 to 9 come to mind, using the channel numbers.

iEvgeny commented 2 years ago

I did some cursory research on this issue. Native support for the CEC protocol is quite difficult to implement. It is not a priority right now. However, I would like to note that CCTV Viewer supports hotkeys for switching presets in the Alt+N format, where N is the preset number from 1 to 9. Based on this, as a workaround, you can try to implement CCTV Viewer control through the cec-client and xdotool libraries as described here: https://ubuntu-mate.community/t/controlling-raspberry-pi-with-tv-remote-using-hdmi-cec/4250