projects/openvidu-components-angular/src/lib/directives/template/internals.directive.ts
The *ovLayoutAdditionalElements directive allows you to inject custom HTML or Angular templates as additional layout elements within the videoconference UI. This enables you to extend the layout with extra controls, banners, or any custom UI.
You can specify a slot to control where the element is positioned:
Usage examples:
Example :<ov-videoconference>
<!-- Default position (after local participant) -->
<ng-container *ovLayoutAdditionalElements>
<div class="my-banner">Banner</div>
</ng-container>
<!-- Top position -->
<ng-container *ovLayoutAdditionalElements="'top'">
<div class="top-bar">Top Bar</div>
</ng-container>
<!-- Bottom position -->
<ng-container *ovLayoutAdditionalElements="'bottom'">
<div class="bottom-info">Footer Info</div>
</ng-container>
</ov-videoconference>| Selector | [ovLayoutAdditionalElements] |
Properties |
constructor(template: TemplateRef
|
|||||||||
|
Parameters :
|
| Public container |
Type : ViewContainerRef
|
| slot |
Type : "top" | "bottom" | "default"
|
Default value : 'default'
|
|
Slot position: 'top', 'bottom', or 'default' |
| Public template |
Type : TemplateRef<any>
|