@ -1376,37 +1376,6 @@ export default {
} ) ;
} ,
/ * *
* Triggers a tooltip to display when a feature was attempted to be used
* while in audio only mode .
*
* @ param { string } featureName - The name of the feature that attempted to
* toggle .
* @ private
* @ returns { void }
* /
_displayAudioOnlyTooltip ( featureName ) {
let buttonName = null ;
let tooltipElementId = null ;
switch ( featureName ) {
case 'screenShare' :
buttonName = 'desktop' ;
tooltipElementId = 'screenshareWhileAudioOnly' ;
break ;
case 'videoMute' :
buttonName = 'camera' ;
tooltipElementId = 'unmuteWhileAudioOnly' ;
break ;
}
if ( tooltipElementId ) {
APP . UI . showToolbar ( 6000 ) ;
APP . UI . showCustomToolbarPopup (
buttonName , tooltipElementId , true , 5000 ) ;
}
} ,
/ * *
* Returns whether or not the conference is currently in audio only mode .
*
@ -1517,8 +1486,6 @@ export default {
}
if ( this . isAudioOnly ( ) ) {
this . _displayAudioOnlyTooltip ( 'screenShare' ) ;
return Promise . reject ( 'No screensharing in audio only mode' ) ;
}
@ -1860,9 +1827,6 @@ export default {
room . on ( JitsiConferenceEvents . TALK _WHILE _MUTED , ( ) => {
APP . UI . showToolbar ( 6000 ) ;
APP . UI . showCustomToolbarPopup (
'microphone' , 'talkWhileMutedPopup' , true , 5000 ) ;
} ) ;
room . on (
@ -1939,10 +1903,6 @@ export default {
reportError ( e ) ;
}
} ) ;
APP . UI . addListener (
UIEvents . VIDEO _UNMUTING _WHILE _AUDIO _ONLY ,
( ) => this . _displayAudioOnlyTooltip ( 'videoMute' ) ) ;
}
room . on ( JitsiConferenceEvents . CONNECTION _INTERRUPTED , ( ) => {
@ -2064,11 +2024,7 @@ export default {
this . muteAudio ( muted ) ;
} ) ;
APP . UI . addListener ( UIEvents . VIDEO _MUTED , muted => {
if ( this . isAudioOnly ( ) && ! muted ) {
this . _displayAudioOnlyTooltip ( 'videoMute' ) ;
} else {
this . muteVideo ( muted ) ;
}
this . muteVideo ( muted ) ;
} ) ;
room . addCommandListener ( this . commands . defaults . ETHERPAD ,