cleanup: Simplify code.

This commit is contained in:
Boris Grozev 2016-11-07 20:39:28 -06:00
parent 9910caf29f
commit 0ca9389e4b
1 changed files with 2 additions and 4 deletions

View File

@ -406,13 +406,11 @@ var VideoLayout = {
addRemoteVideoContainer (id, remoteVideo) {
remoteVideos[id] = remoteVideo;
let videoType = VideoLayout.getRemoteVideoType(id);
if (!videoType) {
if (!remoteVideo.getVideoType()) {
// make video type the default one (camera)
// 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.
if (localLastNCount && localLastNCount > 0 &&