Chat
There are two modes of setting up the meeting, the speaking mode and the forum mode
Speaking mode means that only one person can speak and be controlled by the moderator. Other people may apply to the moderator for a speech.
Forum mode means that all people are free to speak, but the moderator can control and prohibit the speech.
The moderator can invite the non-conference participants out of the conference room.
The general user can block any user's speech (sound and text) except the moderator, shielding the video image
Realize:
Judge a meeting pattern
For the speaking mode,
Shareobjects.send ("Stopphone", null); Performs stopphone on all clients, disabling the mic for all users.
For forum Mode
Shareobjects.send ("Activephone", null); Perform stopphone on all clients and enable the mic for all users.
When the host is on the list of attendees, when the user is selected, right-click the Action menu, please go to the meeting room | to microphone (conference mode)/(Prohibit speaking, forum mode)
Please check out the meeting room:
function Kickout ()
{
Nc.call ("SendAction", NULL, "/kick" +selectusername); Calling service-side functions SendAction
}
To the microphone:
function Givephone () {
Select the//givephone object in line with the current user, give the microphone or not
The selected user is equal to the current user
if (_root.peoplelist_mc.people_lb.selecteditem.data.username==user.username)
{
_root.users_so.send ("Activephone", null,user.username);
}
Else
{
_root.users_so.send ("Stopphone", null,user.username);
}
}
This.users_so.stopphone=function (username)
{
Trace ("The Administrator hands the microphone over to" +username);
}
This.users_so.activephone=function (username)
{
Trace ("Administrator hand over microphone to you");
}
Service-side function sendaction
FCPeopleList.prototype.SendAction = function (CLIENT,MESG) {
var Cglobal = this.getclientglobalstorage (client);
Syntax format sendaction ("/kick username")
if (mesg.substr (0,5) = = "/kick") {
Trace ("Kick called!");
var Usernametokick = mesg.substr (Mesg.indexof ("") +1);
for (var i=0; i<application.clients.length; i++) {
if (Application.clients.user.userName = = Usernametokick) {
Trace ("disconnecting" +application.clients.user);
Show someone on the screen to be invited out of the meeting room because ...
var clocal = this.getclientglobalstorage (application.clients);
Application.disconnect (application.clients);
This.users_so.setProperty (clocal.id, NULL);
This.releaselocalstorage (application.clients);
Take this user out of a series-related thing.
Break
}
}
Return
}
/*
In the administrator's SWF, get a
Tiren = function (USERNAME) {
CONN = new Netconnection ();
CONN. Call ("TR", null,username);
}
Server-side MAIN.ASC in
Application. OnConnect = function (newclient) {
newclient.tr = function (USERNAME) {
Application.disconnect (Selectclient (USERNAME));
}
}
Find the client object according to username
Selectclient (USERNAME) {
return client object;
}
//============
In this case, you just want to play on the client who will kick.
Just call Tiren (the username of the person mentioned)