Skip to content

Commit d76687b

Browse files
committed
Fix post-rebase type errors in subscriber and encoder
Remove unused #closed field in subscriber.ts and fix Bandwidth type usage in encoder.ts (Bandwidth is Signal directly, not a wrapper). https://claude.ai/code/session_01C68pEkoUhQqtQALYxRajhx
1 parent e74686b commit d76687b

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

js/lite/src/lite/subscriber.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ export class Subscriber {
203203
}
204204
}
205205

206-
#closed = false;
207-
208206
/**
209207
* Opens a PROBE bidi stream to receive bandwidth estimates from the publisher.
210208
* Returns immediately if recv bandwidth is not supported.
@@ -227,7 +225,6 @@ export class Subscriber {
227225
}
228226

229227
close() {
230-
this.#closed = true;
231228
for (const track of this.#subscribes.values()) {
232229
track.close();
233230
}

js/publish/src/video/encoder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class Encoder {
217217
const conn = effect.get(this.connection);
218218
const sendBw = conn?.sendBandwidth;
219219
if (sendBw) {
220-
const estimate = effect.get(sendBw.signal);
220+
const estimate = effect.get(sendBw);
221221
if (estimate != null) {
222222
// Reserve ~10% for audio and protocol overhead.
223223
const cap = Math.round(estimate * 0.9);

0 commit comments

Comments
 (0)