Started this project because while using Home Assistant to control my home, I found that I was missing a device for simple control of my playback computer. Since I use a Mac Mini in my home that is directly connected to the NEC projector, I can currently only switch the NEC projector on and off with Home Assistant, but not the player (my Mac Mini).
So I decided to do some initial exploration of controlling my player in a simple way.
A simple test of Qt, using Apple Script to simulate keyboard control. A part of my SmartHomeTools.
In AppleScript part, simply using the System Event's "KeyStroke" to simulate a keyboard activity. And then, tell process Google Chrome. So that if you are already watching a Video on web site. It can control the video play/pause. Just like you are pressing the "Space" key to play or pause this video.
(for all dear contributors, I have not test on NetFlix. If you have NetFlix account and prefer to test this tool, please tell me any result or issues, thanks a lot ! )
- Add special controls for Bilibili Live platform.
- Add more button, to provide more control functions.
- Add special controls for YouTube platform.
- Only one button, used to verify that Qt can control applications in macOS through AppleScript.
Next step will create the remote version.
Maybe this tool will provide a webAPI, and sinply http request will control the play / pause instead using button.
- Apple macOS 10.15.7 Catalina (only test on this version)
- Google Chrome version 108 or newer version
- Apple macOS 10.15.7 Catalina
- Qt Community Version (Clang 6.2.4)
License LGPL v3 (Development with Qt Community version)