Switch for turning on-off a camera stream, is it possible?

It works with the following curl command (place the file disableRTSP.xml under the directory /confog/www.

Problem is that it kills all streams in HASSIO, I guess its a HASS bug

**curl -T /config/www/disableRTSP.xml http://admin:[email protected]/ISAPI/Security/adminAccesses**

Body of disableRTSP.xml
<b><AdminAccessProtocolList xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<AdminAccessProtocol version="2.0">
<AdminAccessProtocol version="2.0">
<id>4</id>
<enabled>false</enabled>
<protocol>RTSP</protocol>
<portNo>554</portNo>
</AdminAccessProtocol>
</AdminAccessProtocol>
</AdminAccessProtocolList>