Copy link to clipboard
Copied
Hello,
Copy link to clipboard
Copied
you can say this.clientID = this.client; and add clientID to the client object....generally though you add the user name to a user object something like ..
this.clientObj = new Object;
this.clientObj = client;
this.clientObj.uName = username;
you might have to tweak the above to make it work i'm writing it from memory instead of looking at my notes.
Copy link to clipboard
Copied
If you mean to change what's displayed in the admin console, I'm fairly certain you can't. That ID is generated by the server when the client object is created, and I recall reading that the id property is read only.
Copy link to clipboard
Copied
Thank you for your reply
this.clientObj = new Object;
this.clientObj = client;
this.clientObj.uName = username;
I do not know at all or place the code in FMS or JW Player ?
Copy link to clipboard
Copied
Thats server side FMS code.
Copy link to clipboard
Copied
ok,
the code you give me should be added to a particular file, if so which ?
Copy link to clipboard
Copied
Add that code to main.asc of you application. Say if your player/client is connecting to "myApp", you can put that code in application.onConnect handler of the main.asc
like
application.onConnect = function(client){
this.clientObj = new Object;
this.clientObj = client;
this.clientObj.uName = username;
}