Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
balazskreith committed Feb 17, 2025
1 parent 4c63fe2 commit 2fd72f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monitors/PeerConnectionMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ export class PeerConnectionMonitor extends EventEmitter {
const selectedIceCandidatePairs = this.selectedIceCandidatePairs;

this.usingTCP = selectedIceCandidatePairs.some(pair => pair.getLocalCandidate()?.protocol === 'tcp');
this.usingTURN = selectedIceCandidatePairs.some(pair => pair.getLocalCandidate()?.candidateType === 'relay') &&
selectedIceCandidatePairs.some(pair => pair.getRemoteCandidate()?.url?.startsWith('turn:'));
this.usingTURN = selectedIceCandidatePairs.some(pair => pair.getLocalCandidate()?.relayProtocol) &&
selectedIceCandidatePairs.some(pair => pair.getLocalCandidate()?.url?.startsWith('turn'));
this.iceState = selectedIceCandidatePairs?.[0]?.getIceTransport()?.iceState as W3C.RtcIceTransportState;

this.totalDataChannelBytesReceived += this.deltaDataChannelBytesReceived;
Expand Down
1 change: 1 addition & 0 deletions src/sources/Sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class Sources {
if (userAgentData.browser) {
// let's add adapter here if we know the browser
try {
// console.warn('userAgentData.browser', userAgentData.browser);
// no-op
} catch (err) {
logger.error('Failed to add adapter', err);
Expand Down

0 comments on commit 2fd72f0

Please sign in to comment.