@ -103,6 +103,11 @@ type Props = {
* /
_feedbackConfigured : boolean ,
/ * *
* Whether or not the file recording feature is enabled for use .
* /
_fileRecordingsEnabled : boolean ,
/ * *
* The current file recording session , if any .
* /
@ -124,6 +129,11 @@ type Props = {
* /
_isGuest : boolean ,
/ * *
* Whether or not the live streaming feature is enabled for use .
* /
_liveStreamingEnabled : boolean ,
/ * *
* The current live streaming session , if any .
* /
@ -144,11 +154,6 @@ type Props = {
* /
_raisedHand : boolean ,
/ * *
* Whether or not the recording feature is enabled for use .
* /
_recordingEnabled : boolean ,
/ * *
* Whether or not the local participant is screensharing .
* /
@ -959,10 +964,11 @@ class Toolbox extends Component<Props> {
_editingDocument ,
_etherpadInitialized ,
_feedbackConfigured ,
_fileRecordingsEnabled ,
_fullScreen ,
_isGuest ,
_liveStreamingEnabled ,
_liveStreamingSession ,
_recordingEnabled ,
_sharingVideo ,
t
} = this . props ;
@ -988,13 +994,13 @@ class Toolbox extends Component<Props> {
text = { _fullScreen
? t ( 'toolbar.exitFullScreen' )
: t ( 'toolbar.enterFullScreen' ) } / > ,
_record ingEnabled
_liveStream ingEnabled
&& this . _shouldShowButton ( 'livestreaming' )
&& < OverflowMenuLiveStreamingItem
key = 'livestreaming'
onClick = { this . _onToolbarToggleLiveStreaming }
session = { _liveStreamingSession } / > ,
_recording Enabled
_fileRecordings Enabled
&& this . _shouldShowButton ( 'recording' )
&& this . _renderRecordingButton ( ) ,
this . _shouldShowButton ( 'sharedvideo' )
@ -1100,8 +1106,9 @@ function _mapStateToProps(state) {
const {
callStatsID ,
disableDesktopSharing ,
enableRecording ,
iAmRecorder
fileRecordingsEnabled ,
iAmRecorder ,
liveStreamingEnabled
} = state [ 'features/base/config' ] ;
const sharedVideoStatus = state [ 'features/shared-video' ] . status ;
const { current } = state [ 'features/side-panel' ] ;
@ -1130,15 +1137,16 @@ function _mapStateToProps(state) {
_hideInviteButton :
iAmRecorder || ( ! addPeopleEnabled && ! dialOutEnabled ) ,
_isGuest : state [ 'features/base/jwt' ] . isGuest ,
_fileRecordingsEnabled : isModerator && fileRecordingsEnabled ,
_fileRecordingSession :
getActiveSession ( state , JitsiRecordingConstants . mode . FILE ) ,
_fullScreen : fullScreen ,
_liveStreamingEnabled : isModerator && liveStreamingEnabled ,
_liveStreamingSession :
getActiveSession ( state , JitsiRecordingConstants . mode . STREAM ) ,
_localParticipantID : localParticipant . id ,
_overflowMenuVisible : overflowMenuVisible ,
_raisedHand : localParticipant . raisedHand ,
_recordingEnabled : isModerator && enableRecording ,
_screensharing : localVideo && localVideo . videoType === 'desktop' ,
_sharingVideo : sharedVideoStatus === 'playing'
|| sharedVideoStatus === 'start'