Is there any event that can process on mute / unmute?
Was coding a script for my music bot and can't find this event...
We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020
Is there any event that can process on mute / unmute?
Was coding a script for my music bot and can't find this event...
If it is for your own client try onClientSelfVariableUpdateEvent, for other clients not 100% sure right now but onUpdateClientEvent might be called.
You could then just check if they have their mic muted or not and do whatever you want to do.
Should be, try the CLIENT_IS_MUTED flag for local mute (you mute others via context menu), CLIENT_INPUT_MUTED for clients that mute themselves via getClientVariableAsInt.
Thanks, I actually checked those but might have missed something.
Btw how can I mute myself? I want my bot to mute when no one is in the channel or everyone is muted.
I tried the close device functions but wouldn't work.
I'm scripting in LUA.
Edit: Fixed. Self muted with: setClientSelfVariableAsInt
Last edited by barricas; March 15th, 2013 at 07:17 PM.
Would afaict be equivalent to what happens at Push to talk to just stop sending from the bot. Left out error handling for laziness ;DCode:local val = 1 local error = ts3.setClientSelfVariableAsInt(serverConnectionHandlerID, ts3defs.ClientProperties.CLIENT_INPUT_DEACTIVATED, val) error = ts3.flushClientSelfUpdates(serverConnectionHandlerID)
It appears to me the "muted you're after for those other clients might be either
CLIENT_OUTPUT_MUTED = 6, -- automatically up-to-date for any client "in view", this clients headphones/speakers mute status
or
CLIENT_OUTPUTONLY_MUTED = 7, -- automatically up-to-date for any client "in view", this clients headphones/speakers only mute status
rather than the ones I mentioned before. Don't ask me what the difference in those two is, the description puzzles me.
Last edited by Philosound; March 15th, 2013 at 07:19 PM.
So.... I want to play a file via VLC when someone joins the channel (and when is only the bot in the channel) BUT only when there is no music playing so it doesn't interrupt. The VLC part works fine. But to check if music was playing, since the bot auto mutes when is alone, I used ts3.getClientSelfVariableAsInt with the CLIENT_FLAG_TALKING and it only returns 0 or 1. Shouldnt it return 2 if the bot is trying to "talk" when mute??
local TalkStatus = {
STATUS_NOT_TALKING = 0,
STATUS_TALKING = 1,
STATUS_TALKING_WHILE_DISABLED = 2
}
There are currently 1 users browsing this thread. (0 members and 1 guests)