Skip to content

Commit

Permalink
added iceGatheringState property - 232
Browse files Browse the repository at this point in the history
  • Loading branch information
fraisai committed Dec 23, 2023
1 parent 5dcec6a commit d27cc76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/components/VideoCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
});

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

Expand Down

0 comments on commit d27cc76

Please sign in to comment.