• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to replace a ClientID in username

Guest
Jun 16, 2009 Jun 16, 2009

Copy link to clipboard

Copied

Hello,

I wonder whether it is possible to replace FMS ClientID generated by a user name ?

If so how ?

Thanks you for your reply

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 17, 2009 Jun 17, 2009

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 17, 2009 Jun 17, 2009

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 17, 2009 Jun 17, 2009

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 17, 2009 Jun 17, 2009

Copy link to clipboard

Copied

Thats server side FMS code.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 17, 2009 Jun 17, 2009

Copy link to clipboard

Copied

ok,

the code you give me should be added to a particular file, if so which ?

I am sorry for all this question but I am still a beginner with FMS

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 22, 2009 Jun 22, 2009

Copy link to clipboard

Copied

LATEST

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;

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines