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:
parent
4db8faa526
commit
ecfc05bcc8
|
@ -567,10 +567,6 @@ class SharedVideoContainer extends LargeContainer {
|
|||
this.player = player;
|
||||
}
|
||||
|
||||
get $video () {
|
||||
return this.$iframe;
|
||||
}
|
||||
|
||||
show () {
|
||||
let self = this;
|
||||
return new Promise(resolve => {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue