Skip to content

Commit d27cc76

Browse files
committed
added iceGatheringState property - 232
1 parent 5dcec6a commit d27cc76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/components/VideoCall.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
229229
});
230230

231231
peer.addEventListener('icegatheringstatechange', () => {
232+
// const stateOfIceGathering = peer.iceGatheringState; // returns a string that describes the connection's ICE gathering state (new, gathering, or complete)
233+
// console.log(`ICE gathering state: ${stateOfIceGathering}`);
232234
console.log(`ICE gathering state changed: ${peerRef.current?.iceGatheringState}`);
233235
});
234236

0 commit comments

Comments
 (0)