Skip to content

Commit

Permalink
Take periodic TURN credentials from server
Browse files Browse the repository at this point in the history
  • Loading branch information
havfo committed Mar 15, 2024
1 parent 53166ad commit f1ae55e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/services/mediaService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ export class MediaService extends EventEmitter {
this.signalingService.on('notification', async (notification) => {
try {
switch (notification.method) {
case 'turnCredentials': {
const { iceServers } = notification.data;

this.iceServers = iceServers;

break;
}

case 'peerClosed': {
const { peerId } = notification.data;

Expand Down

0 comments on commit f1ae55e

Please sign in to comment.