Home | Search | Login | RSS
We have 1082 members and counting!
Next Page

1

Previous Page

Thread: get server room name

Created on: 06/25/10 06:49 AM

Replies: 4

sularome





Joined: 06/25/10

Posts: 11

get server room name
06/25/10 6:49 AM

Hi,

Is there a way to get the room name inside the server application? I want to log some user activity and i need to send to the php the room name.

Thanks in advance

Link | Top | Bottom

Graeme





Joined: 10/18/07

Posts: 1593

RE: get server room name
06/28/10 10:47 PM

How are you saving the room name? I'm not sure what you mean by a room name, there is no such thing in FMS.

Link | Top | Bottom

sularome





Joined: 06/25/10

Posts: 11

RE: get server room name
06/28/10 11:54 PM

Well yes,

but when i connect to fms: connections[roomName].connect('rtmp://xxx.com/chat/' + roomName + '/', username, 0);

how can i know in the fms application what's the value of: roomName

Maybe i can get the url and parse it in a way?

Link | Top | Bottom

Graeme





Joined: 10/18/07

Posts: 1593

RE: get server room name
06/29/10 12:01 AM

So you want to get the instance name of the application. That's not so tough, here's a quick snippet for you:


this.instanceName = application.name.replace(/.*?\//, "");


Putting that in your onAppStart you can then save the instance name for later use.

Link | Top | Bottom

sularome





Joined: 06/25/10

Posts: 11

RE: get server room name
06/29/10 1:14 AM

awesome,.. you're saving lives here :))) (cheers)

Link | Top | Bottom

Next Page

1

Previous Page

New Post

Please login to post a response.