Skip to content

Commit

Permalink
1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
billylindeman committed Nov 4, 2021
1 parent 74cf7b4 commit dc3e2df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default class Client {
}

restartIce() {
this.renegotiate(true)
this.renegotiate(true);
}

createDataChannel(label: string) {
Expand Down Expand Up @@ -227,7 +227,7 @@ export default class Client {
}

private onNegotiationNeeded() {
this.renegotiate(false)
this.renegotiate(false);
}

private async renegotiate(iceRestart: boolean) {
Expand Down
4 changes: 2 additions & 2 deletions src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down Expand Up @@ -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];
}
Expand Down

0 comments on commit dc3e2df

Please sign in to comment.