[Feature] Connect to a Coturn server using REST API
This allows connecting to a TURN server with temporary passwords. The passwords are expiring after 4 hours.
This commit is contained in:
@@ -427,7 +427,9 @@ export class RoomConnection implements RoomConnection {
|
||||
callback({
|
||||
userId: message.getUserid(),
|
||||
name: message.getName(),
|
||||
initiator: message.getInitiator()
|
||||
initiator: message.getInitiator(),
|
||||
webRtcUser: message.getWebrtcpassword() ?? undefined,
|
||||
webRtcPassword: message.getWebrtcpassword() ?? undefined,
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -584,7 +586,7 @@ export class RoomConnection implements RoomConnection {
|
||||
public hasTag(tag: string): boolean {
|
||||
return this.tags.includes(tag);
|
||||
}
|
||||
|
||||
|
||||
public isAdmin(): boolean {
|
||||
return this.hasTag('admin');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user