Fixes clicking remote participant in the contact list.

This commit is contained in:
yanas 2016-01-19 16:51:23 -06:00
parent 2bee98744d
commit dacd54b73c
1 changed files with 1 additions and 2 deletions

View File

@ -47,10 +47,9 @@ function onContactClicked (id) {
let remoteVideo = remoteVideos[id];
if (remoteVideo && remoteVideo.selectVideoElement().length) {
let videoThumb = remoteVideo.selectVideoElement()[0];
// It is not always the case that a videoThumb exists (if there is
// no actual video).
if (RTC.getVideoSrc(videoThumb)) {
if (remoteVideo.stream) {
// We have a video src, great! Let's update the large video
// now.