Show local camera in large video after we re-become the only person in a conference.

This commit is contained in:
paweldomas 2014-03-27 13:47:08 +01:00
parent 39895ed137
commit 81df90897f
1 changed files with 5 additions and 0 deletions

5
app.js
View File

@ -365,6 +365,11 @@ function checkChangeLargeVideo(removedVideoSrc){
if(!pick) { if(!pick) {
console.info("Last visible video no longer exists"); console.info("Last visible video no longer exists");
pick = $('#remoteVideos>span[id!="mixedstream"]>video').get(0); pick = $('#remoteVideos>span[id!="mixedstream"]>video').get(0);
if(!pick) {
// Try local video
console.info("Fallback to local video...");
pick = $('#remoteVideos>span>span>video').get(0);
}
} }
// mute if localvideo // mute if localvideo