This commit is contained in:
Mihail Diordiev 2014-12-25 22:27:41 +00:00
commit a56bd38a5e
1 changed files with 7 additions and 2 deletions

View File

@ -1440,8 +1440,13 @@ var VideoLayout = (function (my) {
return;
}
var resource = Strophe.getResourceFromJid(jid);
var videoContainer = $("#participant_" + resource);
if (jid === connection.emuc.myroomjid) {
var videoContainer = $("#localVideoContainer");
}
else {
var resource = Strophe.getResourceFromJid(jid);
var videoContainer = $("#participant_" + resource);
}
if (videoContainer.length > 0) {
var videoThumb = $('video', videoContainer).get(0);
// It is not always the case that a videoThumb exists (if there is