diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/models/participant.model.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/models/participant.model.ts index 1cbff033..e9ff210e 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/models/participant.model.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/models/participant.model.ts @@ -68,7 +68,7 @@ export abstract class ParticipantAbstractModel { isMutedForcibly: boolean; constructor(props: ParticipantProperties, model?: StreamModel) { - this.id = props.id ? props.id : new Date().getTime().toString(); + this.id = props.id ? props.id : Math.random().toString(32).replace('.','_'); this.local = props.local; this.nickname = props.nickname; this.colorProfile = !!props.colorProfile ? props.colorProfile : `hsl(${Math.random() * 360}, 100%, 80%)`;