Fixes setting local video, default videoType. Fixes showing local video when there is no video device shown.

This commit is contained in:
damencho 2016-03-22 13:27:11 -05:00
parent d82d4cbed9
commit 2c1a9d20fd
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ var VideoLayout = {
init (emitter) {
eventEmitter = emitter;
localVideoThumbnail = new LocalVideo(VideoLayout, emitter);
// sets default video type of local video
localVideoThumbnail.setVideoType(VIDEO_CONTAINER_TYPE);
// if we do not resize the thumbs here, if there is no video device
// the local video thumb maybe one pixel
this.resizeThumbnails(false, true, false);
emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);
this.lastNCount = config.channelLastN;