|
@@ -342,41 +342,6 @@ RemoteVideo.prototype.updateRemoteVideoMenu = function (isMuted) {
|
342
|
342
|
}
|
343
|
343
|
};
|
344
|
344
|
|
345
|
|
-/**
|
346
|
|
- * Updates the Indicator for dominant speaker.
|
347
|
|
- *
|
348
|
|
- * @param isSpeaker indicates the current indicator state
|
349
|
|
- */
|
350
|
|
-RemoteVideo.prototype.updateDominantSpeakerIndicator = function (isSpeaker) {
|
351
|
|
-
|
352
|
|
- if (!this.container) {
|
353
|
|
- console.warn( "Unable to set dominant speaker indicator - "
|
354
|
|
- + this.videoSpanId + " does not exist");
|
355
|
|
- return;
|
356
|
|
- }
|
357
|
|
-
|
358
|
|
- var indicatorSpan
|
359
|
|
- = $('#' + this.videoSpanId + '>span.dominantspeakerindicator');
|
360
|
|
-
|
361
|
|
- // If we do not have an indicator for this video.
|
362
|
|
- if (indicatorSpan.length <= 0) {
|
363
|
|
- indicatorSpan = document.createElement('span');
|
364
|
|
-
|
365
|
|
- indicatorSpan.innerHTML
|
366
|
|
- = "<i id='speakerindicatoricon' class='fa fa-bullhorn'></i>";
|
367
|
|
- indicatorSpan.className = 'dominantspeakerindicator';
|
368
|
|
-
|
369
|
|
- $('#' + this.videoSpanId)[0].appendChild(indicatorSpan);
|
370
|
|
-
|
371
|
|
- // adds a tooltip
|
372
|
|
- UIUtils.setTooltip(indicatorSpan, "speaker", "left");
|
373
|
|
- APP.translation.translateElement($(indicatorSpan));
|
374
|
|
- }
|
375
|
|
-
|
376
|
|
- $(indicatorSpan).css("visibility", isSpeaker ? "visible" : "hidden");
|
377
|
|
-};
|
378
|
|
-
|
379
|
|
-
|
380
|
345
|
/**
|
381
|
346
|
* Sets the display name for the given video span id.
|
382
|
347
|
*/
|