ref(LargeVideoManager): introduce 'setVideoConnectionMessage'
This commit is contained in:
parent
62d2e3e2a4
commit
5952261e87
|
@ -92,10 +92,7 @@ export default class LargeVideoManager {
|
||||||
*/
|
*/
|
||||||
onVideoInterrupted () {
|
onVideoInterrupted () {
|
||||||
this.enableLocalConnectionProblemFilter(true);
|
this.enableLocalConnectionProblemFilter(true);
|
||||||
let reconnectingKey = "connection.RECONNECTING";
|
this._setVideoConnectionMessage("connection.RECONNECTING")
|
||||||
$('#videoConnectionMessage')
|
|
||||||
.attr("data-i18n", reconnectingKey)
|
|
||||||
.text(APP.translation.translateString(reconnectingKey));
|
|
||||||
// Show the message only if the video is currently being displayed
|
// Show the message only if the video is currently being displayed
|
||||||
this.showVideoConnectionMessage(this.state === VIDEO_CONTAINER_TYPE);
|
this.showVideoConnectionMessage(this.state === VIDEO_CONTAINER_TYPE);
|
||||||
}
|
}
|
||||||
|
@ -282,6 +279,21 @@ export default class LargeVideoManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updated the text which is to be shown on the top of large video.
|
||||||
|
*
|
||||||
|
* @param {string} msgKey the translation key which will be used to get
|
||||||
|
* the message text to be displayed on the large video.
|
||||||
|
* @param {object} msgOptions translation options object
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
_setVideoConnectionMessage (msgKey, msgOptions) {
|
||||||
|
$('#videoConnectionMessage')
|
||||||
|
.attr("data-i18n", msgKey)
|
||||||
|
.text(APP.translation.translateString(msgKey, msgOptions));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add container of specified type.
|
* Add container of specified type.
|
||||||
* @param {string} type container type
|
* @param {string} type container type
|
||||||
|
|
Loading…
Reference in New Issue