Skip to content

Commit 4d5ddbf

Browse files
committed
fix: need to provide authkey to update ice
1 parent 58d05fc commit 4d5ddbf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/sdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"dist"
1212
],
1313
"scripts": {
14-
"prepare": "npm run build",
1514
"build": "microbundle --no-sourcemap --format modern,es,cjs",
1615
"dev": "microbundle --watch --format modern,es,cjs",
1716
"test": "karma start",

packages/sdk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class WHIPClient extends EventEmitter {
158158
if (this.supportTrickleIce()) {
159159
const trickleIceSDP = this.makeTrickleIceSdpFragment(candidate);
160160
const url = await this.getResourceUrl();
161-
const response = await this.whipProtocol.updateIce(url, this.eTag, trickleIceSDP);
161+
const response = await this.whipProtocol.updateIce(url, this.eTag, trickleIceSDP, this.opts.authkey);
162162
if (!response.ok) {
163163
this.log("Trickle ICE not supported by endpoint");
164164
this.opts.noTrickleIce = true;

0 commit comments

Comments
 (0)