remoterigs-raspberrypi 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -173,9 +173,16 @@ export default class WebRTCStreamerWrapper {
|
|
|
173
173
|
}
|
|
174
174
|
async FlushBufferedCandidates(sessionId) {
|
|
175
175
|
const buffer = this.candidateBuffer.get(sessionId);
|
|
176
|
+
this.candidateBuffer.delete(sessionId);
|
|
176
177
|
if (buffer && buffer.length > 0) {
|
|
177
178
|
this.Log(`Flushing ${buffer.length} buffered ICE candidates for session ${sessionId}`);
|
|
178
|
-
|
|
179
|
+
// the buffered candidates were never added: add them now that the remote description is set
|
|
180
|
+
for (const candidateMessage of buffer) {
|
|
181
|
+
const message = new WebRTCMessage();
|
|
182
|
+
message.sessionId = sessionId;
|
|
183
|
+
message.message = candidateMessage;
|
|
184
|
+
await this.AddIceCandidate(message);
|
|
185
|
+
}
|
|
179
186
|
}
|
|
180
187
|
}
|
|
181
188
|
async GetIceServers(message) {
|