Hi.
In the documentation, I didn't manage to find a way to make communications between two zone extensions. I know it was possible in the 1.6.X version but is it still possible with SmartFox2X?
Intercommunication between zone extension
- A51Integrated
- Posts: 240
- Joined: 03 Jan 2012, 19:55
- Location: Toronto, Canada
- Contact:
Yes. In SFS2X, there is a "__lib__" folder inside the extension folder. This is a special directory that would allow you to place a jar file that can be referenced by multiple extensions from different zones.
More info is here: http://docs2x.smartfoxserver.com/Advanc ... extensions
More info is here: http://docs2x.smartfoxserver.com/Advanc ... extensions
A51 Integrated
http://a51integrated.com / +1 416-703-2300
http://a51integrated.com / +1 416-703-2300
No, in general under 2X we discourage this practice as much as possible.
Under SFS1.x it was possible in order to group different sets of Rooms under several Zones.
In SFS2X this is no more a problem with Room Groups so each Zone should be insulated from the others.
Additionally each Zone runs its own Extension classloader so there is another level of separation.
In any case the communication is still possible via the handleInternalMessage(String cmdName, Object params) method.
Let's say that this is for power users only If you are experienced with Java, multithreading and classloaders you can definitely take advantage of it... otherwise I would suggest to think another strategy.
good luck
Under SFS1.x it was possible in order to group different sets of Rooms under several Zones.
In SFS2X this is no more a problem with Room Groups so each Zone should be insulated from the others.
Additionally each Zone runs its own Extension classloader so there is another level of separation.
In any case the communication is still possible via the handleInternalMessage(String cmdName, Object params) method.
Let's say that this is for power users only If you are experienced with Java, multithreading and classloaders you can definitely take advantage of it... otherwise I would suggest to think another strategy.
good luck
Lapo wrote:No, in general under 2X we discourage this practice as much as possible.
Under SFS1.x it was possible in order to group different sets of Rooms under several Zones.
In SFS2X this is no more a problem with Room Groups so each Zone should be insulated from the others.
Additionally each Zone runs its own Extension classloader so there is another level of separation.
In any case the communication is still possible via the handleInternalMessage(String cmdName, Object params) method.
Let's say that this is for power users only If you are experienced with Java, multithreading and classloaders you can definitely take advantage of it... otherwise I would suggest to think another strategy.
good luck
I can't think about another strategy right now because there is no way to connect to the RedBox with a Unity webplayer client.
My case is a bit special. When a user client connected in my server, depending of the room and his privileges, he can or can't stream his voice. So I need to have 2 zones :
- 1 for the world data, managing client autorizations, joining rooms, etc ...
- and the second one for the voice synchronized by the first one
I don't want to use a single AS3 script for the whole application. The goal is in fact the reverse; suppress all needs and interactions with Flash.
Currently, there is no C# API to use with RedBox and this is my problem.
Yes unfortunately this is how the application currently works. The world zone extension is also use to synchronize the voice zone extension (login, joining room, authorizations, etc ...). There is also some communication between Flash and Unity. For example, you can mute your microphone directly in the 3D world by pressing a button, the application will send a request via Javascript to the Flash to stop the publication of the live cast.
With the next release of Unity (3.5), we can capture video and micro. But now I need 2 things to remove all Flash dependencies :
- a true C# API for SpeeX (voice compression)
- a true C# API to connect with RedBox and send the compressed voice data
Having only one player will greatly improve performances and portability (ie iOS tablets).
With the next release of Unity (3.5), we can capture video and micro. But now I need 2 things to remove all Flash dependencies :
- a true C# API for SpeeX (voice compression)
- a true C# API to connect with RedBox and send the compressed voice data
Having only one player will greatly improve performances and portability (ie iOS tablets).
Who is online
Users browsing this forum: No registered users and 104 guests