Results 1 to 8 of 8
Thread: [Official] ClientQuery Plugin
-
27-07-2011, 09:17 #1
-= TeamSpeak Team =-
- Join Date
- Jul 2002
- Location
- Germany
- Posts
- 2,836
[Official] ClientQuery Plugin
What is it?
The ClientQuery Plugin is included and enabled by default in every TS3 Client installation. Through a simple tcp/ip socket the client can be queried and controlled. By default only localhost applications can reach this socket (for security reasons).
How can it be used?
ClientQuery has two main uses:
(1) Integrating "TS3 Client Support" into existing applications (e.g. Games). Say you want to display who is currently talking on TeamSpeak within your game. You can map players to TS3 clients and then display which player is talking on TS next to the player names. Or you wish to add something like a "invite user to my teamspeak" function where a player can invite some other player to join his TeamSpeak etc.
(2) TS3 centred software that can not or does not want to use the Client Plugin SDK can use Client Query instead to retrieve information or initiate actions.
Examples/Docs
Documentation and Examples are shipped with the TS3 Client, from your TS3 Client installation Folder go to "plugins/clientquery_plugin" for per command documentation and "plugins/clientquery_plugin/examples" for example code and a README.
Note you can also get documentation interactively, just connect your telnet client to localhost port 25639, and use "help" and "help <command>".
Please post any questions or feedback or feature suggestions below
, but please make sure you are refering to at least TS3 Client 3.0.0 (currently in beta channel), as functionality was much improved.
-
31-07-2011, 21:50 #2
great!
very useful!
Edit:
I took a closer look on it and i have a suggestion:
if you register an event that doesn't exist e.g:
it says alright, but I think it would be good if the response would be that the event does not exist.Code:clientnotifyregister schandlerid=0 event=test1234 error id=0 msg=ok
Regards,
MaxLast edited by Maxe___; 02-08-2011 at 19:58.
-
02-08-2011, 22:25 #3
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 115
Ist it by design that the channellist command does not provide "channel_needed_subscribe_power" when used with ClientQuery?
The result of channellist using ServerQuery and ClientQuery is different.
-
03-08-2011, 11:47 #4
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,762
I'm sorry about my answer before

The difference is, that your client does not have the channel permissions in your cache file.
Your real client connects to the server and loads all channels; users and groups with their permissions.
but it dos not load the channe lpermissiosn as long you don't need them, liek you want to see the description of a channel.
The whole process to save a lot of cpu load and network traffic.
The client query does use the informations he already has and does not ask the server for it.---------------------------------------------------------
Please don't send me private support questions.
They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
-
03-08-2011, 15:26 #5
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 115
The reason I'm asking this is that I wrote a C# lib for server query and I would like to reuse as much code as possible when adding support for clientquery. Each command in my lib returns typesafe classes with members filled from the response. If the response is missing values an exception is thrown. So the difference between client and serverquery forces me to reimplement a lot of code for client query support.
-
13-08-2011, 00:20 #6
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 115
The command "channelconnectinfo" does not work as expected. It always returns the info of the channel I'm currently in, even when I provide an id of a different channel using the channelid parameter.
Btw. is it by design, that I only get the password of the channel when I'm not connected as an admin?
-
14-08-2011, 01:23 #7
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 115
Found another problem:
clientupdate client_input_deactivated=1 or clientupdate client_input_deactivated=0
results in a "hanging" connection. Just type it using a telnet client and you'll see it.
-
22-08-2011, 08:44 #8
-= TeamSpeak Team =-
- Join Date
- Jul 2002
- Location
- Germany
- Posts
- 2,836
This is a flaw in the documentation. The parameter to specify the channel is "cid" not "channelid". The documentation has been updated.
You should get the password if your local client knows it. When you have the permissions to ignore channel passwords you often have never entered the password, so the client will not have the password cached. It might even be a wrong password is cached if the password was changed since the client cached it and you received privileges to ignore the password. Use verifychannelpassword to make sure the password is indeed correct.Btw. is it by design, that I only get the password of the channel when I'm not connected as an admin?
The problem here is that no "error id=0 msg=ok" is returned...the connection itself is fine and everything still works, just this response is missing. I have fixed this and it will be part of the next client release.clientupdate client_input_deactivated=1 or clientupdate client_input_deactivated=0
results in a "hanging" connection. Just type it using a telnet client and you'll see it.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
ClientQuery: Getting my CLID
By Triscopic in forum PluginsReplies: 6Last Post: 06-08-2011, 10:51 -
ClientQuery plugin Source?
By FaltyR in forum PluginsReplies: 1Last Post: 25-07-2011, 11:19 -
ClientQuery plugin
By florian_fr40 in forum PluginsReplies: 16Last Post: 14-10-2010, 17:33 -
WAnt to be an official reseller
By jhdscript in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 18-12-2007, 04:41


Reply With Quote

