fix(LargeVideoManager): enable video problems filter on VideoContainer

Only the VideoContainer is interested in showing the video problems
filter which is meant to be displayed when ICE is disconnected.
This commit is contained in:
paweldomas 2016-09-22 10:38:05 -05:00
parent 4db8faa526
commit ecfc05bcc8
3 changed files with 12 additions and 6 deletions

View File

@ -567,10 +567,6 @@ class SharedVideoContainer extends LargeContainer {
this.player = player;
}
get $video () {
return this.$iframe;
}
show () {
let self = this;
return new Promise(resolve => {

View File

@ -213,8 +213,7 @@ export default class LargeVideoManager {
* @param enable <tt>true</tt> to enable, <tt>false</tt> to disable
*/
enableVideoProblemFilter (enable) {
let container = this.getContainer(this.state);
container.$video.toggleClass("videoProblemFilter", enable);
this.videoContainer.enableVideoProblemFilter(enable);
}
/**

View File

@ -184,6 +184,17 @@ export class VideoContainer extends LargeContainer {
this.$video[0].onplay = onPlay;
}
/**
* Enables a filter on the video which indicates that there are some
* problems with the media connection.
*
* @param {boolean} enable <tt>true</tt> if the filter is to be enabled or
* <tt>false</tt> otherwise.
*/
enableVideoProblemFilter (enable) {
this.$video.toggleClass("videoProblemFilter", enable);
}
/**
* Get size of video element.
* @returns {{width, height}}