Skip to content

Commit

Permalink
Add package-lock and fix indentation issues (lynckia#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Dec 12, 2019
1 parent 7d553dc commit 7f72f03
Show file tree
Hide file tree
Showing 14 changed files with 10,175 additions and 14 deletions.
13 changes: 13 additions & 0 deletions erizoAPI/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion erizo_controller/erizoClient/src/Erizo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LicodeEvent, RoomEvent, StreamEvent } from './Events';
import Stream from './Stream';
import Logger from './utils/Logger';

// eslint-disable-next-line
// eslint-disable-next-line
require('expose-loader?adapter!../lib/adapter.js');

const Erizo = {
Expand Down
6 changes: 3 additions & 3 deletions erizo_controller/erizoClient/src/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Room = (altIo, altConnectionHelpers, altConnectionManager, specInput) => {

that.erizoConnectionManager =
altConnectionManager === undefined ? new ErizoConnectionManager()
: new altConnectionManager.ErizoConnectionManager();
: new altConnectionManager.ErizoConnectionManager();

let socket = Socket(altIo);
that.socket = socket;
Expand Down Expand Up @@ -441,7 +441,7 @@ const Room = (altIo, altConnectionHelpers, altConnectionManager, specInput) => {

const socketOnBandwidthAlert = (arg) => {
Logger.info('Bandwidth Alert on', arg.streamID, 'message',
arg.message, 'BW:', arg.bandwidth);
arg.message, 'BW:', arg.bandwidth);
if (arg.streamID) {
const stream = remoteStreams.get(arg.streamID);
if (stream && !stream.failed) {
Expand Down Expand Up @@ -905,7 +905,7 @@ const Room = (altIo, altConnectionHelpers, altConnectionManager, specInput) => {
stream.room = undefined;
if (stream.hasMedia() && !stream.isExternal()) {
const localStream = localStreams.has(stream.getID()) ?
localStreams.get(stream.getID()) : stream;
localStreams.get(stream.getID()) : stream;
removeStream(localStream);
}
localStreams.remove(stream.getID());
Expand Down
6 changes: 3 additions & 3 deletions erizo_controller/erizoClient/src/Stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ const Stream = (altConnectionHelpers, specInput) => {
};
});
}, (error) => {
Logger.error(`Failed to get access to local media. Error was ${
error.name} with message ${error.message}.`);
Logger.error('Failed to get access to local media. Error was ' +
`${error.name} with message ${error.message}.`);
const streamEvent = StreamEvent({ type: 'access-denied', msg: error });
that.dispatchEvent(streamEvent);
});
Expand Down Expand Up @@ -346,7 +346,7 @@ const Stream = (altConnectionHelpers, specInput) => {
that.checkOptions = (configInput, isUpdate) => {
const config = configInput;
// TODO: Check for any incompatible options
if (isUpdate === true) { // We are updating the stream
if (isUpdate === true) { // We are updating the stream
if (config.audio || config.screen) {
Logger.warning('Cannot update type of subscription');
config.audio = undefined;
Expand Down
2 changes: 1 addition & 1 deletion erizo_controller/erizoClient/src/utils/Base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Base64 = (() => {
if (base64Count >= base64Str.length) {
return END_OF_INPUT;
}
const c = base64Str.charCodeAt(base64Count) & 0xff; // eslint-disable-line no-bitwise
const c = base64Str.charCodeAt(base64Count) & 0xff; // eslint-disable-line no-bitwise
base64Count += 1;
return c;
};
Expand Down
2 changes: 1 addition & 1 deletion erizo_controller/erizoClient/src/utils/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Logger = (() => {
let logPrefix = '';
let outputFunction;

// It sets the new log level. We can set it to NONE if we do not want to print logs
// It sets the new log level. We can set it to NONE if we do not want to print logs
const setLogLevel = (level) => {
let targetLevel = level;
if (level > Logger.NONE) {
Expand Down
2 changes: 1 addition & 1 deletion erizo_controller/erizoClient/src/views/AudioPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const AudioPlayer = (spec) => {
that.elementID = spec.elementID;


// Audio tag
// Audio tag
that.audio = document.createElement('audio');
that.audio.setAttribute('id', `stream${that.id}`);
that.audio.setAttribute('class', 'licode_stream');
Expand Down
6 changes: 3 additions & 3 deletions erizo_controller/erizoClient/src/webrtc-stacks/BaseStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const BaseStack = (specInput) => {

that.pcConfig = {
iceServers: [],
sdpSemantics: 'plan-b', // WARN: Chrome 72+ will by default use unified-plan
sdpSemantics: 'plan-b', // WARN: Chrome 72+ will by default use unified-plan
};

that.con = {};
Expand Down Expand Up @@ -56,7 +56,7 @@ const BaseStack = (specInput) => {

that.peerConnection = new RTCPeerConnection(that.pcConfig, that.con);
let negotiationneededCount = 0;
that.peerConnection.onnegotiationneeded = () => { // one per media which is added
that.peerConnection.onnegotiationneeded = () => { // one per media which is added
let medias = that.audio ? 1 : 0;
medias += that.video ? 1 : 0;
if (negotiationneededCount % medias === 0) {
Expand Down Expand Up @@ -569,7 +569,7 @@ const BaseStack = (specInput) => {
const shouldSendMaxVideoBWInOptions = !specBase.p2p && config.maxVideoBW;
if (config.maxVideoBW) {
Logger.debug('Maxvideo Requested:', config.maxVideoBW,
'limit:', specBase.limitMaxVideoBW);
'limit:', specBase.limitMaxVideoBW);
if (config.maxVideoBW > specBase.limitMaxVideoBW) {
config.maxVideoBW = specBase.limitMaxVideoBW;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const FirefoxStack = (specInput) => {
let numSpatialLayers = that.simulcast.numSpatialLayers || defaultSimulcastSpatialLayers;
const totalLayers = possibleLayers.length;
numSpatialLayers = numSpatialLayers < totalLayers ?
numSpatialLayers : totalLayers;
numSpatialLayers : totalLayers;
const parameters = sender.getParameters() || {};
parameters.encodings = [];

Expand Down
Loading

0 comments on commit 7f72f03

Please sign in to comment.