cleanup: Simplify code.
This commit is contained in:
parent
9910caf29f
commit
0ca9389e4b
|
@ -406,13 +406,11 @@ var VideoLayout = {
|
||||||
addRemoteVideoContainer (id, remoteVideo) {
|
addRemoteVideoContainer (id, remoteVideo) {
|
||||||
remoteVideos[id] = remoteVideo;
|
remoteVideos[id] = remoteVideo;
|
||||||
|
|
||||||
let videoType = VideoLayout.getRemoteVideoType(id);
|
if (!remoteVideo.getVideoType()) {
|
||||||
if (!videoType) {
|
|
||||||
// make video type the default one (camera)
|
// make video type the default one (camera)
|
||||||
// FIXME container type is not a video type
|
// FIXME container type is not a video type
|
||||||
videoType = VIDEO_CONTAINER_TYPE;
|
remoteVideo.setVideoType(VIDEO_CONTAINER_TYPE);
|
||||||
}
|
}
|
||||||
remoteVideo.setVideoType(videoType);
|
|
||||||
|
|
||||||
// In case this is not currently in the last n we don't show it.
|
// In case this is not currently in the last n we don't show it.
|
||||||
if (localLastNCount && localLastNCount > 0 &&
|
if (localLastNCount && localLastNCount > 0 &&
|
||||||
|
|
Loading…
Reference in New Issue