2022-01-20 11:53:56 +01:00
|
|
|
<div id="call-container">
|
|
|
|
<div id="user-settings-container" *ngIf="!joinSessionClicked && !closeClicked">
|
2022-02-03 17:08:23 +01:00
|
|
|
<ov-user-settings (onJoinClicked)="_onJoinClicked()" (onCloseClicked)="onLeaveSessionClicked()"></ov-user-settings>
|
2022-01-20 11:53:56 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="spinner" *ngIf="joinSessionClicked && !isSessionAlive && !error">
|
|
|
|
<mat-spinner [diameter]="50"></mat-spinner>
|
|
|
|
<span>Joining the room ...</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="spinner" *ngIf="joinSessionClicked && !isSessionAlive && error">
|
|
|
|
<mat-icon class="error-icon">error</mat-icon>
|
2022-02-03 17:08:23 +01:00
|
|
|
<span>{{ errorMessage }}</span>
|
2022-01-20 11:53:56 +01:00
|
|
|
</div>
|
|
|
|
|
2022-01-26 11:30:30 +01:00
|
|
|
<div id="session-container" *ngIf="joinSessionClicked && isSessionAlive && !error">
|
|
|
|
<ov-session [tokens]="_tokens">
|
2022-02-11 13:18:50 +01:00
|
|
|
<ng-content select="[toolbar]" toolbar></ng-content>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
2022-02-11 13:18:50 +01:00
|
|
|
<!-- OPENVIDU PANEL -->
|
|
|
|
<span #panelRef panel>
|
2022-02-03 17:08:23 +01:00
|
|
|
<!-- Custom panel -->
|
2022-02-11 13:18:50 +01:00
|
|
|
<ng-content select="[panel]"></ng-content>
|
|
|
|
</span>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
2022-02-11 13:18:50 +01:00
|
|
|
<!-- Default panel if the custom one is not injected -->
|
|
|
|
<ov-panel *ngIf="panelRef.childNodes.length === 0" panel>
|
|
|
|
<span #chatPanelRef chatPanel>
|
|
|
|
<!-- Custom CHAT panel -->
|
|
|
|
<ng-content select="[chatPanel]"></ng-content>
|
|
|
|
</span>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
2022-02-11 13:18:50 +01:00
|
|
|
<!-- Default CHAT PANEL if the custom one is not injected -->
|
|
|
|
<ov-chat-panel *ngIf="chatPanelRef.childNodes.length === 0" chatPanel></ov-chat-panel>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
2022-02-11 13:18:50 +01:00
|
|
|
<span #participantsPanelRef participantsPanel>
|
|
|
|
<!-- Custom PARTICIPANTS panel -->
|
|
|
|
<ng-content select="[participantsPanel]"></ng-content>
|
|
|
|
</span>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
2022-02-11 13:18:50 +01:00
|
|
|
<!-- Default PARTICIPANTS PANEL if the custom one is not injected -->
|
|
|
|
<ov-participants-panel *ngIf="participantsPanelRef.childNodes.length === 0" participantsPanel></ov-participants-panel>
|
|
|
|
</ov-panel>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
|
|
|
<ng-template #layout>
|
|
|
|
<!-- Custom layout -->
|
2022-02-11 13:18:50 +01:00
|
|
|
<span #layoutRef layout>
|
|
|
|
<ng-content select="[layout]"></ng-content>
|
|
|
|
</span>
|
2022-02-03 17:08:23 +01:00
|
|
|
|
|
|
|
<!-- Default layout if custom layout is not injected -->
|
2022-02-11 13:18:50 +01:00
|
|
|
<ov-layout *ngIf="layoutRef.childNodes.length === 0" layout>
|
|
|
|
<ng-template #stream let-stream>
|
|
|
|
<!-- Custom stream component -->
|
|
|
|
<ng-container *ngIf="streamTemplate; else defaultStream">
|
|
|
|
<ng-container *ngTemplateOutlet="streamTemplate; context: { $implicit: stream }"> </ng-container>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<!-- Default stream component if custom one is not injected -->
|
|
|
|
<ng-template #defaultStream>
|
|
|
|
<ov-stream [stream]="stream"></ov-stream>
|
2022-02-03 17:08:23 +01:00
|
|
|
</ng-template>
|
2022-02-11 13:18:50 +01:00
|
|
|
</ng-template>
|
|
|
|
</ov-layout>
|
2022-02-03 17:08:23 +01:00
|
|
|
</ng-template>
|
2022-01-26 11:30:30 +01:00
|
|
|
</ov-session>
|
2022-01-20 11:53:56 +01:00
|
|
|
</div>
|
|
|
|
</div>
|