diff --git a/js/views/mediacontrolsview.js b/js/views/mediacontrolsview.js index 16a37acf9b7..cbf9a140292 100644 --- a/js/views/mediacontrolsview.js +++ b/js/views/mediacontrolsview.js @@ -183,7 +183,7 @@ } else { this._webrtc.pauseVideo(); - this.getUI('videoButton').attr('data-original-title', t('spreed', 'Enable video (v)')) + this.getUI('videoButton').attr('data-original-title', this._getEnableVideoButtonTitle()) .addClass('local-video-disabled video-disabled icon-video-off') .removeClass('icon-video'); this.getUI('audioButton').addClass('local-video-disabled'); @@ -195,6 +195,14 @@ return true; }, + _getEnableVideoButtonTitle: function() { + if (!this._app.signaling || this._app.signaling.getSendVideoIfAvailable()) { + return t('spreed', 'Enable video (v)'); + } + + return t('spreed', 'Enable video (v) - Your connection will be briefly interrupted when enabling the video for the first time'); + }, + /** * Sets the video as available or not available. *