Script execution on playback start/stop

Is it possible to execute a script when playback is started or stopped?

I want to start/stop hyperion accordingly.

Thanks!

Or another idea might be to execute a script when receiving CEC power on and standby.

Search in this Section for Hyperion, there are numerous setup and advice postings.

Regards