ref(LargeVideoManager): rename 'enableVideoProblemFilter'

This commit is contained in:
paweldomas 2016-09-24 11:19:58 -05:00
parent 352e784cad
commit 5843c6c569
2 changed files with 8 additions and 7 deletions

View File

@ -91,7 +91,7 @@ export default class LargeVideoManager {
* Called when the media connection has been interrupted. * Called when the media connection has been interrupted.
*/ */
onVideoInterrupted () { onVideoInterrupted () {
this.enableVideoProblemFilter(true); this.enableLocalConnectionProblemFilter(true);
let reconnectingKey = "connection.RECONNECTING"; let reconnectingKey = "connection.RECONNECTING";
$('#videoConnectionMessage') $('#videoConnectionMessage')
.attr("data-i18n", reconnectingKey) .attr("data-i18n", reconnectingKey)
@ -104,7 +104,7 @@ export default class LargeVideoManager {
* Called when the media connection has been restored. * Called when the media connection has been restored.
*/ */
onVideoRestored () { onVideoRestored () {
this.enableVideoProblemFilter(false); this.enableLocalConnectionProblemFilter(false);
this.showVideoConnectionMessage(false); this.showVideoConnectionMessage(false);
} }
@ -240,12 +240,13 @@ export default class LargeVideoManager {
} }
/** /**
* Enables/disables the filter indicating a video problem to the user. * Enables/disables the filter indicating a video problem to the user caused
* by the problems with local media connection.
* *
* @param enable <tt>true</tt> to enable, <tt>false</tt> to disable * @param enable <tt>true</tt> to enable, <tt>false</tt> to disable
*/ */
enableVideoProblemFilter (enable) { enableLocalConnectionProblemFilter (enable) {
this.videoContainer.enableVideoProblemFilter(enable); this.videoContainer.enableLocalConnectionProblemFilter(enable);
} }
/** /**

View File

@ -186,12 +186,12 @@ export class VideoContainer extends LargeContainer {
/** /**
* Enables a filter on the video which indicates that there are some * Enables a filter on the video which indicates that there are some
* problems with the media connection. * problems with the local media connection.
* *
* @param {boolean} enable <tt>true</tt> if the filter is to be enabled or * @param {boolean} enable <tt>true</tt> if the filter is to be enabled or
* <tt>false</tt> otherwise. * <tt>false</tt> otherwise.
*/ */
enableVideoProblemFilter (enable) { enableLocalConnectionProblemFilter (enable) {
this.$video.toggleClass("videoProblemFilter", enable); this.$video.toggleClass("videoProblemFilter", enable);
} }