projects/openvidu-angular/src/lib/components/layout/layout.component.ts
The LayoutComponent is hosted inside of the VideoconferenceComponent. It is in charge of displaying the participants streams layout.
The LayoutComponent can be replaced with a custom component. It provides us the following Angular structural directives for doing this.
| Directive | Reference |
|---|---|
| *ovLayout | LayoutDirective |
It is also providing us a way to replace the Stream Component (which is hosted inside of it) with a custom one. It will recognise the following directive in a child element.
| Directive | Reference |
|---|---|
| *ovStream | StreamDirective |
See all OpenVidu Angular Directives
OnInit
OnDestroy
AfterViewInit
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | ov-layout |
| styleUrls | ./layout.component.css |
| templateUrl | ./layout.component.html |
Properties |
| localParticipant |
Type : ParticipantAbstractModel
|
| remoteParticipants |
Type : ParticipantAbstractModel[]
|
Default value : []
|