2016-09-21 20:02:19 +00:00
|
|
|
/* global $, APP, interfaceConfig */
|
|
|
|
/* jshint -W101 */
|
|
|
|
|
2017-04-10 17:59:44 +00:00
|
|
|
import Filmstrip from './Filmstrip';
|
2016-09-21 20:02:19 +00:00
|
|
|
import LargeContainer from './LargeContainer';
|
|
|
|
import UIEvents from "../../../service/UI/UIEvents";
|
|
|
|
import UIUtil from "../util/UIUtil";
|
|
|
|
|
|
|
|
// FIXME should be 'video'
|
|
|
|
export const VIDEO_CONTAINER_TYPE = "camera";
|
|
|
|
|
|
|
|
const FADE_DURATION_MS = 300;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get stream id.
|
|
|
|
* @param {JitsiTrack?} stream
|
|
|
|
*/
|
|
|
|
function getStreamOwnerId(stream) {
|
|
|
|
if (!stream) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// local stream doesn't have method "getParticipantId"
|
|
|
|
if (stream.isLocal()) {
|
|
|
|
return APP.conference.getMyUserId();
|
|
|
|
} else {
|
|
|
|
return stream.getParticipantId();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an array of the video dimensions, so that it keeps it's aspect
|
|
|
|
* ratio and fits available area with it's larger dimension. This method
|
|
|
|
* ensures that whole video will be visible and can leave empty areas.
|
|
|
|
*
|
2016-11-11 17:55:18 +00:00
|
|
|
* @param videoWidth the width of the video to position
|
|
|
|
* @param videoHeight the height of the video to position
|
|
|
|
* @param videoSpaceWidth the width of the available space
|
|
|
|
* @param videoSpaceHeight the height of the available space
|
2016-09-21 20:02:19 +00:00
|
|
|
* @return an array with 2 elements, the video width and the video height
|
|
|
|
*/
|
|
|
|
function getDesktopVideoSize(videoWidth,
|
|
|
|
videoHeight,
|
|
|
|
videoSpaceWidth,
|
|
|
|
videoSpaceHeight) {
|
|
|
|
|
|
|
|
let aspectRatio = videoWidth / videoHeight;
|
|
|
|
|
|
|
|
let availableWidth = Math.max(videoWidth, videoSpaceWidth);
|
|
|
|
let availableHeight = Math.max(videoHeight, videoSpaceHeight);
|
|
|
|
|
2017-04-10 17:59:44 +00:00
|
|
|
videoSpaceHeight -= Filmstrip.getFilmstripHeight();
|
2016-09-21 20:02:19 +00:00
|
|
|
|
|
|
|
if (availableWidth / aspectRatio >= videoSpaceHeight) {
|
|
|
|
availableHeight = videoSpaceHeight;
|
|
|
|
availableWidth = availableHeight * aspectRatio;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (availableHeight * aspectRatio >= videoSpaceWidth) {
|
|
|
|
availableWidth = videoSpaceWidth;
|
|
|
|
availableHeight = availableWidth / aspectRatio;
|
|
|
|
}
|
|
|
|
|
|
|
|
return [ availableWidth, availableHeight ];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an array of the video dimensions. It respects the
|
|
|
|
* VIDEO_LAYOUT_FIT config, to fit the video to the screen, by hiding some parts
|
|
|
|
* of it, or to fit it to the height or width.
|
|
|
|
*
|
|
|
|
* @param videoWidth the original video width
|
|
|
|
* @param videoHeight the original video height
|
|
|
|
* @param videoSpaceWidth the width of the video space
|
|
|
|
* @param videoSpaceHeight the height of the video space
|
|
|
|
* @return an array with 2 elements, the video width and the video height
|
|
|
|
*/
|
|
|
|
function getCameraVideoSize(videoWidth,
|
|
|
|
videoHeight,
|
|
|
|
videoSpaceWidth,
|
|
|
|
videoSpaceHeight) {
|
|
|
|
|
|
|
|
let aspectRatio = videoWidth / videoHeight;
|
|
|
|
|
|
|
|
let availableWidth = videoWidth;
|
|
|
|
let availableHeight = videoHeight;
|
|
|
|
|
|
|
|
if (interfaceConfig.VIDEO_LAYOUT_FIT == 'height') {
|
|
|
|
availableHeight = videoSpaceHeight;
|
|
|
|
availableWidth = availableHeight*aspectRatio;
|
|
|
|
}
|
|
|
|
else if (interfaceConfig.VIDEO_LAYOUT_FIT == 'width') {
|
|
|
|
availableWidth = videoSpaceWidth;
|
|
|
|
availableHeight = availableWidth/aspectRatio;
|
|
|
|
}
|
|
|
|
else if (interfaceConfig.VIDEO_LAYOUT_FIT == 'both') {
|
|
|
|
availableWidth = Math.max(videoWidth, videoSpaceWidth);
|
|
|
|
availableHeight = Math.max(videoHeight, videoSpaceHeight);
|
|
|
|
|
|
|
|
if (availableWidth / aspectRatio < videoSpaceHeight) {
|
|
|
|
availableHeight = videoSpaceHeight;
|
|
|
|
availableWidth = availableHeight * aspectRatio;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (availableHeight * aspectRatio < videoSpaceWidth) {
|
|
|
|
availableWidth = videoSpaceWidth;
|
|
|
|
availableHeight = availableWidth / aspectRatio;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return [ availableWidth, availableHeight ];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an array of the video horizontal and vertical indents,
|
|
|
|
* so that if fits its parent.
|
|
|
|
*
|
|
|
|
* @return an array with 2 elements, the horizontal indent and the vertical
|
|
|
|
* indent
|
|
|
|
*/
|
|
|
|
function getCameraVideoPosition(videoWidth,
|
|
|
|
videoHeight,
|
|
|
|
videoSpaceWidth,
|
|
|
|
videoSpaceHeight) {
|
|
|
|
// Parent height isn't completely calculated when we position the video in
|
|
|
|
// full screen mode and this is why we use the screen height in this case.
|
|
|
|
// Need to think it further at some point and implement it properly.
|
|
|
|
if (UIUtil.isFullScreen()) {
|
|
|
|
videoSpaceHeight = window.innerHeight;
|
|
|
|
}
|
|
|
|
|
|
|
|
let horizontalIndent = (videoSpaceWidth - videoWidth) / 2;
|
|
|
|
let verticalIndent = (videoSpaceHeight - videoHeight) / 2;
|
|
|
|
|
|
|
|
return { horizontalIndent, verticalIndent };
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an array of the video horizontal and vertical indents.
|
|
|
|
* Centers horizontally and top aligns vertically.
|
|
|
|
*
|
|
|
|
* @return an array with 2 elements, the horizontal indent and the vertical
|
|
|
|
* indent
|
|
|
|
*/
|
2016-10-03 16:12:04 +00:00
|
|
|
function getDesktopVideoPosition(videoWidth, videoHeight, videoSpaceWidth) {
|
2016-09-21 20:02:19 +00:00
|
|
|
let horizontalIndent = (videoSpaceWidth - videoWidth) / 2;
|
|
|
|
|
|
|
|
let verticalIndent = 0;// Top aligned
|
|
|
|
|
|
|
|
return { horizontalIndent, verticalIndent };
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Container for user video.
|
|
|
|
*/
|
|
|
|
export class VideoContainer extends LargeContainer {
|
|
|
|
// FIXME: With Temasys we have to re-select everytime
|
|
|
|
get $video () {
|
|
|
|
return $('#largeVideo');
|
|
|
|
}
|
|
|
|
|
|
|
|
get id () {
|
|
|
|
return getStreamOwnerId(this.stream);
|
|
|
|
}
|
|
|
|
|
2017-02-08 19:57:55 +00:00
|
|
|
/**
|
|
|
|
* Creates new VideoContainer instance.
|
|
|
|
* @param resizeContainer {Function} function that takes care of the size
|
|
|
|
* of the video container.
|
|
|
|
* @param emitter {EventEmitter} the event emitter that will be used by
|
|
|
|
* this instance.
|
|
|
|
*/
|
|
|
|
constructor (resizeContainer, emitter) {
|
2016-09-21 20:02:19 +00:00
|
|
|
super();
|
|
|
|
this.stream = null;
|
|
|
|
this.videoType = null;
|
|
|
|
this.localFlipX = true;
|
|
|
|
this.emitter = emitter;
|
2017-02-08 19:57:55 +00:00
|
|
|
this.resizeContainer = resizeContainer;
|
2016-09-21 20:02:19 +00:00
|
|
|
|
|
|
|
this.isVisible = false;
|
|
|
|
|
2016-09-24 18:24:18 +00:00
|
|
|
/**
|
|
|
|
* Flag indicates whether or not the avatar is currently displayed.
|
|
|
|
* @type {boolean}
|
|
|
|
*/
|
|
|
|
this.avatarDisplayed = false;
|
2016-09-21 20:02:19 +00:00
|
|
|
this.$avatar = $('#dominantSpeaker');
|
2016-09-24 18:19:52 +00:00
|
|
|
|
2016-09-24 18:24:18 +00:00
|
|
|
/**
|
|
|
|
* A jQuery selector of the remote connection message.
|
|
|
|
* @type {jQuery|HTMLElement}
|
|
|
|
*/
|
|
|
|
this.$remoteConnectionMessage = $('#remoteConnectionMessage');
|
|
|
|
|
2016-09-24 18:19:52 +00:00
|
|
|
/**
|
|
|
|
* Indicates whether or not the video stream attached to the video
|
|
|
|
* element has started(which means that there is any image rendered
|
|
|
|
* even if the video is stalled).
|
|
|
|
* @type {boolean}
|
|
|
|
*/
|
|
|
|
this.wasVideoRendered = false;
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
this.$wrapper = $('#largeVideoWrapper');
|
|
|
|
|
|
|
|
this.avatarHeight = $("#dominantSpeakerAvatar").height();
|
|
|
|
|
2016-09-24 18:19:52 +00:00
|
|
|
var onPlayCallback = function (event) {
|
2017-02-08 19:57:55 +00:00
|
|
|
if (typeof resizeContainer === 'function') {
|
|
|
|
resizeContainer(event);
|
2016-09-24 18:19:52 +00:00
|
|
|
}
|
|
|
|
this.wasVideoRendered = true;
|
|
|
|
}.bind(this);
|
2016-09-21 20:02:19 +00:00
|
|
|
// This does not work with Temasys plugin - has to be a property to be
|
|
|
|
// copied between new <object> elements
|
|
|
|
//this.$video.on('play', onPlay);
|
2016-09-24 18:19:52 +00:00
|
|
|
this.$video[0].onplay = onPlayCallback;
|
2016-09-21 20:02:19 +00:00
|
|
|
}
|
|
|
|
|
2016-09-22 15:38:05 +00:00
|
|
|
/**
|
|
|
|
* Enables a filter on the video which indicates that there are some
|
2016-09-24 16:19:58 +00:00
|
|
|
* problems with the local media connection.
|
2016-09-22 15:38:05 +00:00
|
|
|
*
|
|
|
|
* @param {boolean} enable <tt>true</tt> if the filter is to be enabled or
|
|
|
|
* <tt>false</tt> otherwise.
|
|
|
|
*/
|
2016-09-24 16:19:58 +00:00
|
|
|
enableLocalConnectionProblemFilter (enable) {
|
2016-09-22 15:38:05 +00:00
|
|
|
this.$video.toggleClass("videoProblemFilter", enable);
|
|
|
|
}
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
/**
|
|
|
|
* Get size of video element.
|
|
|
|
* @returns {{width, height}}
|
|
|
|
*/
|
|
|
|
getStreamSize () {
|
|
|
|
let video = this.$video[0];
|
|
|
|
return {
|
|
|
|
width: video.videoWidth,
|
|
|
|
height: video.videoHeight
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Calculate optimal video size for specified container size.
|
|
|
|
* @param {number} containerWidth container width
|
|
|
|
* @param {number} containerHeight container height
|
|
|
|
* @returns {{availableWidth, availableHeight}}
|
|
|
|
*/
|
|
|
|
getVideoSize (containerWidth, containerHeight) {
|
|
|
|
let { width, height } = this.getStreamSize();
|
|
|
|
if (this.stream && this.isScreenSharing()) {
|
|
|
|
return getDesktopVideoSize( width,
|
|
|
|
height,
|
|
|
|
containerWidth,
|
|
|
|
containerHeight);
|
|
|
|
} else {
|
|
|
|
return getCameraVideoSize( width,
|
|
|
|
height,
|
|
|
|
containerWidth,
|
|
|
|
containerHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Calculate optimal video position (offset for top left corner)
|
|
|
|
* for specified video size and container size.
|
|
|
|
* @param {number} width video width
|
|
|
|
* @param {number} height video height
|
|
|
|
* @param {number} containerWidth container width
|
|
|
|
* @param {number} containerHeight container height
|
|
|
|
* @returns {{horizontalIndent, verticalIndent}}
|
|
|
|
*/
|
|
|
|
getVideoPosition (width, height, containerWidth, containerHeight) {
|
|
|
|
if (this.stream && this.isScreenSharing()) {
|
|
|
|
return getDesktopVideoPosition( width,
|
|
|
|
height,
|
|
|
|
containerWidth,
|
|
|
|
containerHeight);
|
|
|
|
} else {
|
|
|
|
return getCameraVideoPosition( width,
|
|
|
|
height,
|
|
|
|
containerWidth,
|
|
|
|
containerHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-24 18:24:18 +00:00
|
|
|
/**
|
|
|
|
* Update position of the remote connection message which describes that
|
|
|
|
* the remote user is having connectivity issues.
|
|
|
|
*/
|
|
|
|
positionRemoteConnectionMessage () {
|
|
|
|
|
|
|
|
if (this.avatarDisplayed) {
|
|
|
|
let $avatarImage = $("#dominantSpeakerAvatar");
|
|
|
|
this.$remoteConnectionMessage.css(
|
|
|
|
'top',
|
|
|
|
$avatarImage.offset().top + $avatarImage.height() + 10);
|
|
|
|
} else {
|
|
|
|
let height = this.$remoteConnectionMessage.height();
|
|
|
|
let parentHeight = this.$remoteConnectionMessage.parent().height();
|
|
|
|
this.$remoteConnectionMessage.css(
|
|
|
|
'top', (parentHeight/2) - (height/2));
|
|
|
|
}
|
|
|
|
|
|
|
|
let width = this.$remoteConnectionMessage.width();
|
|
|
|
let parentWidth = this.$remoteConnectionMessage.parent().width();
|
|
|
|
this.$remoteConnectionMessage.css(
|
|
|
|
'left', ((parentWidth/2) - (width/2)));
|
|
|
|
}
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
resize (containerWidth, containerHeight, animate = false) {
|
2017-02-28 05:03:48 +00:00
|
|
|
// XXX Prevent TypeError: undefined is not an object when the Web
|
|
|
|
// browser does not support WebRTC (yet).
|
|
|
|
if (this.$video.length === 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
let [width, height]
|
|
|
|
= this.getVideoSize(containerWidth, containerHeight);
|
|
|
|
let { horizontalIndent, verticalIndent }
|
|
|
|
= this.getVideoPosition(width, height,
|
|
|
|
containerWidth, containerHeight);
|
|
|
|
|
|
|
|
// update avatar position
|
|
|
|
let top = containerHeight / 2 - this.avatarHeight / 4 * 3;
|
|
|
|
|
|
|
|
this.$avatar.css('top', top);
|
|
|
|
|
2016-09-24 18:24:18 +00:00
|
|
|
this.positionRemoteConnectionMessage();
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
this.$wrapper.animate({
|
|
|
|
width: width,
|
|
|
|
height: height,
|
|
|
|
|
|
|
|
top: verticalIndent,
|
|
|
|
bottom: verticalIndent,
|
|
|
|
|
|
|
|
left: horizontalIndent,
|
|
|
|
right: horizontalIndent
|
|
|
|
}, {
|
|
|
|
queue: false,
|
|
|
|
duration: animate ? 500 : 0
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update video stream.
|
|
|
|
* @param {JitsiTrack?} stream new stream
|
|
|
|
* @param {string} videoType video type
|
|
|
|
*/
|
|
|
|
setStream (stream, videoType) {
|
2016-09-24 18:19:52 +00:00
|
|
|
if (this.stream === stream) {
|
2017-02-08 19:57:55 +00:00
|
|
|
// Handles the use case for the remote participants when the
|
|
|
|
// videoType is received with delay after turning on/off the
|
|
|
|
// desktop sharing.
|
|
|
|
if(this.videoType !== videoType) {
|
|
|
|
this.videoType = videoType;
|
|
|
|
this.resizeContainer();
|
|
|
|
}
|
2016-09-24 18:19:52 +00:00
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
// The stream has changed, so the image will be lost on detach
|
|
|
|
this.wasVideoRendered = false;
|
|
|
|
}
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
// detach old stream
|
|
|
|
if (this.stream) {
|
|
|
|
this.stream.detach(this.$video[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
this.stream = stream;
|
|
|
|
this.videoType = videoType;
|
|
|
|
|
|
|
|
if (!stream) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
stream.attach(this.$video[0]);
|
|
|
|
let flipX = stream.isLocal() && this.localFlipX;
|
|
|
|
this.$video.css({
|
|
|
|
transform: flipX ? 'scaleX(-1)' : 'none'
|
|
|
|
});
|
2017-01-25 22:53:58 +00:00
|
|
|
|
|
|
|
// Reset the large video background depending on the stream.
|
|
|
|
this.setLargeVideoBackground(this.avatarDisplayed);
|
2016-09-21 20:02:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Changes the flipX state of the local video.
|
|
|
|
* @param val {boolean} true if flipped.
|
|
|
|
*/
|
|
|
|
setLocalFlipX(val) {
|
|
|
|
this.localFlipX = val;
|
|
|
|
if(!this.$video || !this.stream || !this.stream.isLocal())
|
|
|
|
return;
|
|
|
|
this.$video.css({
|
|
|
|
transform: this.localFlipX ? 'scaleX(-1)' : 'none'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Check if current video stream is screen sharing.
|
|
|
|
* @returns {boolean}
|
|
|
|
*/
|
|
|
|
isScreenSharing () {
|
|
|
|
return this.videoType === 'desktop';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show or hide user avatar.
|
|
|
|
* @param {boolean} show
|
|
|
|
*/
|
|
|
|
showAvatar (show) {
|
|
|
|
// TO FIX: Video background need to be black, so that we don't have a
|
|
|
|
// flickering effect when scrolling between videos and have the screen
|
|
|
|
// move to grey before going back to video. Avatars though can have the
|
|
|
|
// default background set.
|
|
|
|
// In order to fix this code we need to introduce video background or
|
|
|
|
// find a workaround for the video flickering.
|
2017-01-25 22:53:58 +00:00
|
|
|
this.setLargeVideoBackground(show);
|
2016-09-21 20:02:19 +00:00
|
|
|
|
|
|
|
this.$avatar.css("visibility", show ? "visible" : "hidden");
|
2016-09-24 18:24:18 +00:00
|
|
|
this.avatarDisplayed = show;
|
2016-09-21 20:02:19 +00:00
|
|
|
|
2016-09-15 15:37:32 +00:00
|
|
|
this.emitter.emit(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE, show);
|
2016-09-21 20:02:19 +00:00
|
|
|
}
|
|
|
|
|
2016-09-24 18:24:18 +00:00
|
|
|
/**
|
|
|
|
* Indicates that the remote user who is currently displayed by this video
|
|
|
|
* container is having connectivity issues.
|
|
|
|
*
|
|
|
|
* @param {boolean} show <tt>true</tt> to show or <tt>false</tt> to hide
|
|
|
|
* the indication.
|
|
|
|
*/
|
|
|
|
showRemoteConnectionProblemIndicator (show) {
|
|
|
|
this.$video.toggleClass("remoteVideoProblemFilter", show);
|
|
|
|
this.$avatar.toggleClass("remoteVideoProblemFilter", show);
|
|
|
|
}
|
|
|
|
|
2016-09-21 20:02:19 +00:00
|
|
|
// We are doing fadeOut/fadeIn animations on parent div which wraps
|
|
|
|
// largeVideo, because when Temasys plugin is in use it replaces
|
|
|
|
// <video> elements with plugin <object> tag. In Safari jQuery is
|
|
|
|
// unable to store values on this plugin object which breaks all
|
|
|
|
// animation effects performed on it directly.
|
|
|
|
|
|
|
|
show () {
|
|
|
|
// its already visible
|
|
|
|
if (this.isVisible) {
|
|
|
|
return Promise.resolve();
|
|
|
|
}
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
this.$wrapper.css('visibility', 'visible').fadeTo(
|
|
|
|
FADE_DURATION_MS,
|
|
|
|
1,
|
|
|
|
() => {
|
|
|
|
this.isVisible = true;
|
|
|
|
resolve();
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
hide () {
|
|
|
|
// as the container is hidden/replaced by another container
|
|
|
|
// hide its avatar
|
|
|
|
this.showAvatar(false);
|
|
|
|
|
|
|
|
// its already hidden
|
|
|
|
if (!this.isVisible) {
|
|
|
|
return Promise.resolve();
|
|
|
|
}
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
this.$wrapper.fadeTo(FADE_DURATION_MS, 0, () => {
|
|
|
|
this.$wrapper.css('visibility', 'hidden');
|
|
|
|
this.isVisible = false;
|
|
|
|
resolve();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return {boolean} switch on dominant speaker event if on stage.
|
|
|
|
*/
|
|
|
|
stayOnStage () {
|
|
|
|
return false;
|
|
|
|
}
|
2017-01-25 22:53:58 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the large video container background depending on the container
|
|
|
|
* type and the parameter indicating if an avatar is currently shown on
|
|
|
|
* large.
|
|
|
|
*
|
|
|
|
* @param {boolean} isAvatar - Indicates if the avatar is currently shown
|
|
|
|
* on the large video.
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
setLargeVideoBackground (isAvatar) {
|
|
|
|
$("#largeVideoContainer").css("background",
|
|
|
|
(this.videoType === VIDEO_CONTAINER_TYPE && !isAvatar)
|
|
|
|
? "#000" : interfaceConfig.DEFAULT_BACKGROUND);
|
|
|
|
}
|
2016-09-21 20:02:19 +00:00
|
|
|
}
|