We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f34f0 commit 91fdaa8Copy full SHA for 91fdaa8
demo/index.ts
@@ -269,6 +269,19 @@ $(() => {
269
session
270
.accept()
271
.then(() => {
272
+ const pc = session.sessionDescriptionHandler?.peerConnection as RTCPeerConnection;
273
+ setTimeout(async () => {
274
+ const stats = await pc.getStats();
275
+ stats.forEach((report) => {
276
+ if(report.kind === "audio" && report.type === 'inbound-rtp') {
277
+ console.log(report);
278
+ if(report.bytesReceived < 1000) {
279
+ console.warn('not enough audio data received, probably one way audio issue');
280
+ }
281
282
+ });
283
+ }, 3000);
284
+
285
$modal.modal('hide');
286
onAccepted(session);
287
})
0 commit comments