2017-09-30 13:48:40 +02:00
|
|
|
<div class="div-wrapper">
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-card class="join-card">
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-card-content>
|
2017-09-30 13:48:40 +02:00
|
|
|
<form class="session-form">
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-10-16 15:49:23 +02:00
|
|
|
<div class="secure-div">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-checkbox class="secure-session-checkbox" [disabled]="session" [(ngModel)]="secureSession" name="secureSession">SECURE</mat-checkbox>
|
|
|
|
<mat-form-field style="margin-right: 10px">
|
|
|
|
<input class="sessionIdInput" matInput placeholder="SESSIONID" name="sessionIdInput" [(ngModel)]="sessionIdInput" [disabled]="!secureSession">
|
|
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<input class="tokenInput" matInput placeholder="TOKEN" name="tokenInput" [(ngModel)]="tokenInput" [disabled]="!secureSession">
|
|
|
|
</mat-form-field>
|
2017-10-16 15:49:23 +02:00
|
|
|
</div>
|
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-form-field style="margin-right: 10px">
|
|
|
|
<input matInput placeholder="Session name" name="sessionName" [(ngModel)]="sessionName" [disabled]="session">
|
|
|
|
</mat-form-field>
|
2017-09-29 13:54:22 +02:00
|
|
|
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-form-field>
|
|
|
|
<input matInput placeholder="Client data" name="clientData" [(ngModel)]="clientData" [disabled]="session">
|
|
|
|
</mat-form-field>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<button class="join-btn" mat-button (click)="joinSession()" [disabled]="session">JOIN</button>
|
|
|
|
<mat-checkbox class="subscribe-checkbox" name="subscribeTo" (change)="toggleSubscribeTo()" [checked]="subscribeTo && checkSubscribeTo"
|
|
|
|
[disabled]="session">Subscribe</mat-checkbox>
|
|
|
|
<mat-checkbox class="publish-checkbox" name="publishTo" (change)="togglePublishTo()" [checked]="publishTo && checkPublishTo"
|
|
|
|
[disabled]="session || disablePublishTo">Publish</mat-checkbox>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="inner-card" fxLayout="row" fxLayoutAlign="start start">
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
<div fxFlex="60">
|
2017-09-28 19:13:29 +02:00
|
|
|
<div>
|
2017-09-30 13:48:40 +02:00
|
|
|
<h4>Send</h4>
|
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-checkbox class="send-audio-checkbox" name="sendAudio" (change)="toggleSendAudio()" [checked]="sendAudio && checkSendAudio"
|
|
|
|
[disabled]="session || disableSendAudio">Audio</mat-checkbox>
|
|
|
|
<mat-checkbox class="send-video-checkbox" name="sendVideo" (change)="toggleSendVideo()" [checked]="sendVideo && checkSendVideo"
|
|
|
|
[disabled]="session || disableSendVideo">Video</mat-checkbox>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
</div>
|
2017-09-30 13:48:40 +02:00
|
|
|
<div style="padding-top: 5px;">
|
|
|
|
<h4>Enter active</h4>
|
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-checkbox class="active-audio-checkbox" name="activeAudio" (change)="toggleActiveAudio()" [checked]="activeAudio && checkActiveAudio"
|
|
|
|
[disabled]="session || disableActiveAudio">Audio</mat-checkbox>
|
|
|
|
<mat-checkbox class="active-video-checkbox" name="activeVideo" (change)="toggleActiveVideo()" [checked]="activeVideo && checkActiveVideo"
|
|
|
|
[disabled]="session || disableActiveVideo">Video</mat-checkbox>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-29 13:54:22 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
</div>
|
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
<div fxFlex="40">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-radio-group [(ngModel)]="optionsVideo" [disabled]="session || disableRadioButtons" [ngModelOptions]="{standalone: true}">
|
2017-09-30 13:48:40 +02:00
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-radio-button class="video-radio" value="video" [checked]="checkRadioVideo && optionsVideo==='video'">Video</mat-radio-button>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-radio-button class="screen-radio" value="screen" [checked]="checkRadioScreen && optionsVideo==='screen'">Screen</mat-radio-button>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-10-16 17:16:14 +02:00
|
|
|
</mat-radio-group>
|
|
|
|
<mat-checkbox class="subscribe-remote-check" name="subscribeToRemote" (change)="subscribeToRemote = !subscribeToRemote" [disabled]="(!sendAudio && !sendVideo) || !publishTo || session"
|
2017-10-16 15:49:23 +02:00
|
|
|
[checked]="(sendAudio || sendVideo) && publishTo && subscribeToRemote">Subscribe
|
2017-10-16 17:16:14 +02:00
|
|
|
<br>to remote</mat-checkbox>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
</form>
|
2017-10-16 17:16:14 +02:00
|
|
|
</mat-card-content>
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-10-16 17:16:14 +02:00
|
|
|
</mat-card>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
<div *ngIf="session">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-card class="session-card">
|
2017-09-30 13:48:40 +02:00
|
|
|
<div class="session-card-header">
|
|
|
|
<div class="session-card-inner">
|
|
|
|
<div class="session-title">{{sessionName}}</div>
|
|
|
|
<div class="session-actions">
|
2017-12-11 17:09:57 +01:00
|
|
|
<button class="message-btn" (click)="sendMessage()">
|
|
|
|
<mat-icon aria-label="Send message button">chat</mat-icon>
|
|
|
|
</button>
|
2017-10-16 15:49:23 +02:00
|
|
|
<button class="video-btn" *ngIf="publishTo && sendVideo" (click)="toggleVideo()">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-icon aria-label="Mute video button">{{videoIcon}}</mat-icon>
|
2017-10-16 15:49:23 +02:00
|
|
|
</button>
|
|
|
|
<button class="audio-btn" *ngIf="publishTo && sendAudio" (click)="toggleAudio()">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-icon aria-label="Mute audio button">{{audioIcon}}</mat-icon>
|
2017-10-16 15:49:23 +02:00
|
|
|
</button>
|
|
|
|
<button class="leave-btn" (click)="leaveSession()">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-icon aria-label="Leave button">clear</mat-icon>
|
2017-10-16 15:49:23 +02:00
|
|
|
</button>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-09-29 13:54:22 +02:00
|
|
|
</div>
|
2017-09-28 19:13:29 +02:00
|
|
|
</div>
|
2017-09-30 13:48:40 +02:00
|
|
|
<div *ngIf="session.connection" fxLayout>
|
|
|
|
<div fxFlex="135px" class="video-container">
|
2017-10-04 10:30:15 +02:00
|
|
|
|
2017-10-09 18:48:05 +02:00
|
|
|
<div class="event-list-div scroll-custom">
|
2017-10-16 17:16:14 +02:00
|
|
|
<mat-accordion [attr.id]="'events-' + session.connection.connectionId" class="event-list">
|
|
|
|
<mat-expansion-panel *ngFor="let event of events" class="event-item">
|
|
|
|
<mat-expansion-panel-header [attr.id]="event.name + '-' + session.connection.connectionId" [collapsedHeight]="'20px'" [expandedHeight]="'20px'"
|
2017-10-16 15:49:23 +02:00
|
|
|
class="event-name">
|
2017-10-04 10:30:15 +02:00
|
|
|
{{event.name}}
|
2017-10-16 17:16:14 +02:00
|
|
|
</mat-expansion-panel-header>
|
2017-10-09 18:48:05 +02:00
|
|
|
<div class="event-content">{{event.content}}</div>
|
2017-10-16 17:16:14 +02:00
|
|
|
</mat-expansion-panel>
|
|
|
|
</mat-accordion>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-04 10:30:15 +02:00
|
|
|
<div [attr.id]="'remote-vid-' + session.connection.connectionId" fxFlex="270px" class="video-container">
|
|
|
|
<div [attr.id]="'local-vid-' + session.connection.connectionId"></div>
|
|
|
|
</div>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
2017-10-16 17:16:14 +02:00
|
|
|
</mat-card>
|
2017-09-30 13:48:40 +02:00
|
|
|
</div>
|
|
|
|
|
2017-09-28 19:13:29 +02:00
|
|
|
</div>
|