git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2169 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
bde00c7a4a
commit
3a317760ea
@ -78,8 +78,8 @@
|
||||
width="100%" height="100%"/>
|
||||
<mx:ApplicationControlBar id="chatCtrlBar" width="100%" height="10%">
|
||||
<mx:HBox>
|
||||
<mx:Label text="Filter Categories:" />
|
||||
<mx:TextInput id="idFilter" text="*" change="filter()"/>
|
||||
<mx:Label text="Highlight:" />
|
||||
<mx:TextInput id="idFilter" change="filter()"/>
|
||||
</mx:HBox>
|
||||
<mx:HBox>
|
||||
<mx:Label text="Turn Logging Off"/>
|
||||
|
@ -22,16 +22,20 @@
|
||||
|
||||
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
title="Logged Out" showCloseButton="true" creationComplete="init()"
|
||||
x="168" y="86" layout="absolute" width="500" height="200">
|
||||
x="168" y="86" layout="absolute" width="300" height="100">
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import mx.controls.Alert;
|
||||
import mx.managers.PopUpManager;
|
||||
|
||||
private function init():void {
|
||||
addEventListener(Event.CLOSE, onUserLoggedOutWindowClose);
|
||||
}
|
||||
|
||||
private function closeWindow():void {
|
||||
private function redirect():void {
|
||||
var pageURL:String = mx.core.Application.application.url.split("/")[2];
|
||||
var url:URLRequest = new URLRequest("http://" + pageURL);
|
||||
navigateToURL(url, '_blank');
|
||||
PopUpManager.removePopUp(this);
|
||||
}
|
||||
|
||||
@ -40,10 +44,7 @@
|
||||
}
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
<mx:ControlBar horizontalAlign="center" verticalAlign="middle" x="0" y="106">
|
||||
<mx:Spacer width="100%"/>
|
||||
<mx:Button id="okBtn" label="OK" click="closeWindow()"/>
|
||||
</mx:ControlBar>
|
||||
<mx:Label text="You have logged out of the conference" />
|
||||
|
||||
<mx:Button id="okBtn" label="OK" click="redirect()" x="118.5" y="28"/>
|
||||
<mx:Label text="You have logged out of the conference" y="7" x="24"/>
|
||||
</mx:TitleWindow>
|
@ -30,11 +30,14 @@
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import mx.core.Application;
|
||||
|
||||
private var _xPosition:int;
|
||||
private var _yPosition:int;
|
||||
private var localDispatcher:IEventDispatcher;
|
||||
|
||||
private var dispState:String;
|
||||
|
||||
public function get xPosition():int {
|
||||
return _xPosition;
|
||||
}
|
||||
@ -57,7 +60,22 @@
|
||||
|
||||
private function onCreationComplete():void {
|
||||
chatView.localDispatcher = localDispatcher;
|
||||
}
|
||||
|
||||
/* Set up full screen handler. */
|
||||
Application.application.stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenHandler);
|
||||
dispState = Application.application.stage.displayState;
|
||||
}
|
||||
|
||||
private function fullScreenHandler(evt:FullScreenEvent):void {
|
||||
dispState = Application.application.stage.displayState + " (fullScreen=" + evt.fullScreen.toString() + ")";
|
||||
if (evt.fullScreen) {
|
||||
chatView.txtMsg.text = "Chat not enabled in full screen mode";
|
||||
chatView.txtMsg.enabled = false;
|
||||
} else {
|
||||
chatView.txtMsg.text = "";
|
||||
chatView.txtMsg.enabled = true;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
|
@ -68,8 +68,6 @@ package org.bigbluebutton.modules.viewers
|
||||
ViewersModuleConstants.ASSIGN_PRESENTER,
|
||||
ViewersModuleConstants.BECOME_VIEWER,
|
||||
ViewersModuleConstants.VIEW_CAMERA,
|
||||
ViewersModuleConstants.USER_JOINED,
|
||||
ViewersModuleConstants.USER_LEFT
|
||||
];
|
||||
}
|
||||
|
||||
@ -128,12 +126,6 @@ package org.bigbluebutton.modules.viewers
|
||||
EndpointMessageConstants.TO_VIDEO_MODULE,
|
||||
{viewerName:_module.username, streamName:notification.getBody().stream, viewedName:notification.getBody().viewedName});
|
||||
break;
|
||||
case ViewersModuleConstants.USER_JOINED:
|
||||
_endpoint.sendMessage(EndpointMessageConstants.NEW_PARTICIPANT, EndpointMessageConstants.TO_CHAT_MODULE, notification.getBody());
|
||||
break;
|
||||
case ViewersModuleConstants.USER_LEFT:
|
||||
_endpoint.sendMessage(EndpointMessageConstants.PARTICIPANT_LEFT, EndpointMessageConstants.TO_CHAT_MODULE, notification.getBody());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,5 @@ package org.bigbluebutton.modules.viewers
|
||||
public static const APP_SHUTDOWN:String = "APP_SHUTDOWN";
|
||||
public static const CONNECT_REJECTED:String = "CONNECT_REJECTED";
|
||||
public static const UNKNOWN_REASON:String = "UNKNOWN_REASON";
|
||||
|
||||
public static const USER_JOINED:String = "USER_JOINED";
|
||||
public static const USER_LEFT:String = "USER_LEFT";
|
||||
}
|
||||
}
|
@ -96,7 +96,6 @@ package org.bigbluebutton.modules.viewers.view
|
||||
ViewersModuleConstants.OPEN_VIEWERS_WINDOW,
|
||||
ViewersModuleConstants.CLOSE_VIEWERS_WINDOW,
|
||||
ViewersModuleConstants.BECOME_VIEWER,
|
||||
ViewersModuleConstants.USER_JOINED
|
||||
];
|
||||
}
|
||||
|
||||
@ -117,10 +116,6 @@ package org.bigbluebutton.modules.viewers.view
|
||||
case ViewersModuleConstants.BECOME_VIEWER:
|
||||
LogUtil.debug('Sending BECOME_VIEWER_EVENT');
|
||||
break;
|
||||
case ViewersModuleConstants.USER_JOINED:
|
||||
_viewersWindow.userJoinSound.end();
|
||||
_viewersWindow.userJoinSound.play();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,10 +22,12 @@
|
||||
|
||||
<viewer:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
xmlns:viewer="flexlib.mdi.containers.*"
|
||||
implements="org.bigbluebutton.common.IBbbModuleWindow">
|
||||
implements="org.bigbluebutton.common.IBbbModuleWindow" xmlns:mate="http://mate.asfusion.com/">
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import mx.controls.Alert;
|
||||
import org.bigbluebutton.main.events.ParticipantJoinEvent;
|
||||
import org.bigbluebutton.modules.viewers.view.events.ChangeStatusEvent;
|
||||
import org.bigbluebutton.modules.viewers.ViewersModuleConstants;
|
||||
import mx.events.ListEvent;
|
||||
@ -78,10 +80,17 @@
|
||||
private function viewerSelectEvent(event:ListEvent):void {
|
||||
dispatchEvent(new Event(ViewersModuleConstants.VIEWER_SELECTED_EVENT));
|
||||
}
|
||||
|
||||
private function playSound(e:ParticipantJoinEvent):void{
|
||||
if (e.join){
|
||||
userJoinSound.end();
|
||||
userJoinSound.play();
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
<mx:DataGrid id="viewersGrid" dataProvider="{participants}" editable="false" mouseDownEffect="{userJoinSound}"
|
||||
<mx:DataGrid id="viewersGrid" dataProvider="{participants}" editable="false"
|
||||
dragEnabled="false" itemClick="viewerSelectEvent(event);" width="100%" height="100%">
|
||||
<mx:columns>
|
||||
<mx:DataGridColumn dataField="role" headerText="Role" dataTipField="Role" editable="false" width="35"
|
||||
@ -104,4 +113,5 @@
|
||||
</mx:ControlBar>
|
||||
|
||||
<mx:SoundEffect id="userJoinSound" source="@Embed('../assets/sounds/user_join.mp3')" target="{this}" />
|
||||
<mate:Listener id="joinListener" method="playSound" type="{ParticipantJoinEvent.PARTICIPANT_JOINED_EVENT}" />
|
||||
</viewer:MDIWindow>
|
||||
|
Loading…
Reference in New Issue
Block a user