Closed MypowerHD closed 4 years ago
Got this implemented in 2.0.0, but unfortunately TeamSpeak doesn't trigger the client variable update when you join another TeamSpeak server, where the mic gets disabled automatically.
So there is currently no way to capture this behavior ?
Maybe the Input Disable/Enable can still be treated then as IsMicrophoneMuted and IsSoundMuted
I got a solution for this, which will be in 2.0.0p2.
The issue is, that TeamSpeak updates the client property CLIENT_INPUT_HARDWARE
only on the connection tab where the mic will be enabled and completely forgets about the tab where the mic was active.
So you have to listen for that and set the mic as disabled, when it gets enabled on any other tab.
2.0.0 is with this feature implemented on the stable branch.
It would be nice if we can check that the Player has no Input or Output Hardware enabled. In the plugin sdk it handled over the HardwareInputStatus and HardwareOutputStatus.
https://github.com/TeamSpeak-Systems/ts3client-pluginsdk/blob/a39d50383b4a023941c31c08fe0c9766b149ed01/include/teamspeak/public_definitions.h#L80