Merge pull request #357 from SenecaCDOT-BigBlueButton/recording-notification

Recording notification
This commit is contained in:
Richard Alam 2014-08-14 14:27:58 -04:00
commit a461b38f0c
2 changed files with 34 additions and 4 deletions

View File

@ -67,6 +67,9 @@ bbb.mainToolbar.recordBtn.toolTip.notRecording = The session isn't being recorde
bbb.mainToolbar.recordBtn.confirm.title = Confirm recording
bbb.mainToolbar.recordBtn.confirm.message.start = Are you sure you want to start recording the session?
bbb.mainToolbar.recordBtn.confirm.message.stop = Are you sure you want to stop recording the session?
bbb.mainToolbar.recordBtn..notification.title = Recording Notification
bbb.mainToolbar.recordBtn..notification.message1 = This meeting is configured for recording.
bbb.mainToolbar.recordBtn..notification.message2 = You must click the Start/Stop Recording button to begin and end the recording.
bbb.mainToolbar.recordingLabel.recording = (Recording)
bbb.mainToolbar.recordingLabel.notRecording = Not Recording
bbb.window.minimizeBtn.toolTip = Minimize

View File

@ -34,19 +34,24 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
mouseOut="onRecordButtonMouseOut(event)" >
<mate:Listener type="{BBBEvent.CHANGE_RECORDING_STATUS}" method="onRecordingStatusChanged" />
<mate:Listener type="{FlashJoinedVoiceConferenceEvent.JOINED_VOICE_CONFERENCE}" method="handleFlashJoinedVoiceConference" />
<mate:Listener type="{WebRTCCallEvent.WEBRTC_CALL_STARTED}" method="handleWebRTCCallStarted" />
<mx:Script>
<![CDATA[
import com.asfusion.mate.events.Dispatcher;
import mx.controls.Alert;
import mx.events.CloseEvent;
import org.bigbluebutton.main.events.BBBEvent;
import org.bigbluebutton.core.managers.UserManager;
import org.bigbluebutton.main.events.BBBEvent;
import org.bigbluebutton.modules.phone.events.FlashJoinedVoiceConferenceEvent;
import org.bigbluebutton.modules.phone.events.WebRTCCallEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
private var recordingFlag:Boolean;
private var firstAudioJoin:Boolean = true;
private function confirmChangeRecordingStatus():void {
trace("Confirming recording status change!!!!");
@ -116,6 +121,28 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
}
private function handleFlashJoinedVoiceConference(e:FlashJoinedVoiceConferenceEvent):void {
showRecordingNotification();
}
private function handleWebRTCCallStarted(e:WebRTCCallEvent):void {
showRecordingNotification();
}
private function showRecordingNotification():void {
if (firstAudioJoin && this.visible && !this.selected && UserManager.getInstance().getConference().amIModerator()) {
var alert:Alert = Alert.show(ResourceUtil.getInstance().getString("bbb.mainToolbar.recordBtn..notification.message1") + "\n\n" + ResourceUtil.getInstance().getString("bbb.mainToolbar.recordBtn..notification.message2"), ResourceUtil.getInstance().getString("bbb.mainToolbar.recordBtn..notification.title"), Alert.OK, this);
var newX:Number = this.x;
var newY:Number = this.y + this.height + 5;
alert.validateNow();
alert.move(newX, newY);
firstAudioJoin = false;
}
}
private function onRecordButtonMouseOver(event:MouseEvent):void {
if (UserManager.getInstance().getConference().amIModerator()) {
this.styleName = this.selected? "recordButtonStyleStop": "recordButtonStyleStart";