Run script or publish to MQTT topic during streaming/capture.
This plugin is running great on my raspberry Pi 3 with the waveshare noIR camera. I want to use it as secondary baby monitor. Issue is the infrared LEDs heat up a fair bit, so I want to be able to have them only turn on during streaming and during capture. 

I can handle the programming/wiring to turn on/off the LEDs so I just need a generic solution to run a script/output to either MQTT/http when the stream/capture occurs.