mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Added participant property in stream model
parent
301e284d36
commit
602ae5b66b
|
@ -9,6 +9,7 @@ export interface StreamModel {
|
||||||
streamManager: StreamManager;
|
streamManager: StreamManager;
|
||||||
videoEnlarged: boolean;
|
videoEnlarged: boolean;
|
||||||
connectionId: string;
|
connectionId: string;
|
||||||
|
participant?: ParticipantAbstractModel
|
||||||
}
|
}
|
||||||
|
|
||||||
export abstract class ParticipantAbstractModel {
|
export abstract class ParticipantAbstractModel {
|
||||||
|
@ -23,7 +24,8 @@ export abstract class ParticipantAbstractModel {
|
||||||
type: model ? model.type : VideoType.CAMERA,
|
type: model ? model.type : VideoType.CAMERA,
|
||||||
streamManager: model ? model.streamManager : null,
|
streamManager: model ? model.streamManager : null,
|
||||||
videoEnlarged: model ? model.videoEnlarged : false,
|
videoEnlarged: model ? model.videoEnlarged : false,
|
||||||
connectionId: model ? model.connectionId : null
|
connectionId: model ? model.connectionId : null,
|
||||||
|
participant: this
|
||||||
};
|
};
|
||||||
this.streams.set(streamModel.type, streamModel);
|
this.streams.set(streamModel.type, streamModel);
|
||||||
this.id = id ? id : new Date().getTime().toString();
|
this.id = id ? id : new Date().getTime().toString();
|
||||||
|
|
Loading…
Reference in New Issue