Fixing WebRtc user name / password when using TURN REST API
This commit is contained in:
parent
7fb923f823
commit
6b00355ea8
9 changed files with 65 additions and 18 deletions
|
@ -28,12 +28,12 @@ export class ScreenSharingPeer extends Peer {
|
|||
{
|
||||
urls: STUN_SERVER.split(',')
|
||||
},
|
||||
{
|
||||
TURN_SERVER !== '' ? {
|
||||
urls: TURN_SERVER.split(','),
|
||||
username: user.webRtcUser || TURN_USER,
|
||||
credential: user.webRtcPassword || TURN_PASSWORD
|
||||
},
|
||||
]
|
||||
} : undefined,
|
||||
].filter((value) => value !== undefined)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue