openvidu-components: Fixed participants initialization

pull/707/head
csantosm 2022-02-28 15:28:53 +01:00
parent b529f6edc6
commit e512dcc735
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ export abstract class ParticipantAbstractModel {
nickname: string;
isMutedForcibly: boolean;
constructor(model?: StreamModel, id?: string, local?: boolean, nickname?: string) {
constructor(model?: StreamModel, id?: string, local: boolean = true, nickname?: string) {
this.id = id ? id : new Date().getTime().toString();
this.local = local ? local : true,
this.local = local,
this.nickname = nickname ? nickname : 'OpenVidu_User',
this.isMutedForcibly = false;
let streamModel: StreamModel = {