mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed participants initialization
parent
b529f6edc6
commit
e512dcc735
|
@ -17,9 +17,9 @@ export abstract class ParticipantAbstractModel {
|
||||||
nickname: string;
|
nickname: string;
|
||||||
isMutedForcibly: boolean;
|
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.id = id ? id : new Date().getTime().toString();
|
||||||
this.local = local ? local : true,
|
this.local = local,
|
||||||
this.nickname = nickname ? nickname : 'OpenVidu_User',
|
this.nickname = nickname ? nickname : 'OpenVidu_User',
|
||||||
this.isMutedForcibly = false;
|
this.isMutedForcibly = false;
|
||||||
let streamModel: StreamModel = {
|
let streamModel: StreamModel = {
|
||||||
|
|
Loading…
Reference in New Issue