openvidu-components: Added participant property in stream model

pull/707/head
csantosm 2022-02-15 16:44:09 +01:00
parent 301e284d36
commit 602ae5b66b
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ export interface StreamModel {
streamManager: StreamManager;
videoEnlarged: boolean;
connectionId: string;
participant?: ParticipantAbstractModel
}
export abstract class ParticipantAbstractModel {
@ -23,7 +24,8 @@ export abstract class ParticipantAbstractModel {
type: model ? model.type : VideoType.CAMERA,
streamManager: model ? model.streamManager : null,
videoEnlarged: model ? model.videoEnlarged : false,
connectionId: model ? model.connectionId : null
connectionId: model ? model.connectionId : null,
participant: this
};
this.streams.set(streamModel.type, streamModel);
this.id = id ? id : new Date().getTime().toString();