Bigger recording timer label & sync recording label with locale

This commit is contained in:
Ghazi Triki 2018-06-08 10:21:39 +01:00
parent ffb0357d7a
commit dc5ff6e2b4
3 changed files with 13 additions and 6 deletions

View File

@ -332,6 +332,10 @@ phonecomponents|MuteMeButton {
icon : Embed(source="assets/swf/v2_skin.swf", symbol="Icon_Record_On");
}
.recordingTimerStyle {
fontSize : 14;
}
.muteMeDefaultButtonStyle {
iconAudio : Embed(source="assets/swf/v2_skin.swf", symbol="Icon_Microphone");
}

View File

@ -898,7 +898,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
visible="{_showToolbar}"
includeInLayout="{showToolbarOpt}"
verticalAlign="middle"
toolbarOptions="{layoutOptions}"
updateComplete="updateToolbarHeight()"/>
<!-- MainCanvas height has to be forced or it will never show and the application will not continue loading -->

View File

@ -112,7 +112,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
[Bindable] private var showToolbar:Boolean = false;
[Bindable] private var showGuestSettingsButton:Boolean = false;
[Bindable] private var showRecordButton:Boolean = false;
[Bindable] public var toolbarOptions:LayoutOptions;
[Bindable] private var toolbarOptions:LayoutOptions;
[Bindable] private var brandingOptions:BrandingOptions;
[Bindable] private var usersOptions:UsersOptions;
@ -462,6 +462,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
btnLogout.styleName = "logoutButtonStyle" + styleNameExt;
initBreakoutRibbon();
updateMeetingNameLabel();
}
private function openSettings(e:Event = null):void{
@ -491,14 +492,17 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
private function onRecordingStatusChanged(event:BBBEvent):void {
if (event.payload.recording) {
updateMeetingNameLabel();
}
private function updateMeetingNameLabel():void {
if (LiveMeeting.inst().meetingStatus.isRecording) {
meetingNameLbl.text = ResourceUtil.getInstance().getString('bbb.mainToolbar.recordingLabel.recording')
} else {
meetingNameLbl.text = "";
TimerUtil.stopTimer(recordingTimer.id);
}
if (toolbarOptions.showMeetingName) {
var meetingTitle:String = LiveMeeting.inst().meeting.name;
if (meetingTitle != null) {
@ -601,7 +605,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mx:HBox id="addedBtnsDeskShare" />
</mx:HBox>
<mx:HBox id="rightBox" width="40%" height="100%" horizontalAlign="right" verticalAlign="middle" horizontalScrollPolicy="off">
<mx:Label id="recordingTimer" visible="false" includeInLayout="{recordingTimer.visible}"/>
<mx:Label id="recordingTimer" visible="false" includeInLayout="{recordingTimer.visible}" styleName="recordingTimerStyle"/>
<views:RecordButton id="recordBtn" visible="{showRecordButton}" includeInLayout="{showRecordButton}"/>
<views:WebRTCAudioStatus id="webRTCAudioStatus" height="30"/>