diff --git a/package-lock.json b/package-lock.json index af77ada3..84b02922 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "ion-sdk-js", - "version": "1.7.3", + "version": "1.7.4", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.7.3", + "version": "1.7.4", "license": "MIT", "dependencies": { "@improbable-eng/grpc-web": "^0.13.0", diff --git a/package.json b/package.json index 8d913811..0a525b9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ion-sdk-js", - "version": "1.7.3", + "version": "1.7.4", "description": "A js sdk for ion sfu", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/client.ts b/src/client.ts index ec18e597..ee2343f6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -178,7 +178,7 @@ export default class Client { } restartIce() { - this.renegotiate(true) + this.renegotiate(true); } createDataChannel(label: string) { @@ -227,7 +227,7 @@ export default class Client { } private onNegotiationNeeded() { - this.renegotiate(false) + this.renegotiate(false); } private async renegotiate(iceRestart: boolean) { diff --git a/src/stream.ts b/src/stream.ts index 35819fb6..2b509a1f 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -210,7 +210,7 @@ export class LocalStream extends MediaStream { }; if (track.kind === 'video') { if (this.encodingParams) { - init.sendEncodings = this.encodingParams + init.sendEncodings = this.encodingParams; } else if (this.constraints.simulcast) { const idx = resolutions.indexOf(this.constraints.resolution); const encodings: RTCRtpEncodingParameters[] = [ @@ -238,7 +238,7 @@ export class LocalStream extends MediaStream { maxFramerate: VideoConstraints[resolutions[idx - 2]].encodings.maxFramerate, }); } - init.sendEncodings = encodings + init.sendEncodings = encodings; } else { init.sendEncodings = [VideoConstraints[this.constraints.resolution].encodings]; }