openvidu-testapp: default custom layout in API REST

pull/73/head
pabloFuente 2018-04-30 14:30:13 +02:00
parent 2887fae835
commit 53830573fa
2 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,7 @@
<tr> <tr>
<th>Recording Mode</th> <th>Recording Mode</th>
<th>Default Recording Layout</th> <th>Default Recording Layout</th>
<th *ngIf="this.selectedDefaultRecordingLayout === 'CUSTOM'">Default Custom Layout</th>
<th>Media Mode</th> <th>Media Mode</th>
</tr> </tr>
<tr id="tr-session-properties"> <tr id="tr-session-properties">
@ -34,6 +35,11 @@
</mat-option> </mat-option>
</mat-select> </mat-select>
</td> </td>
<td *ngIf="this.selectedDefaultRecordingLayout === 'CUSTOM'">
<mat-form-field id="default-custom-layout-field">
<input matInput placeholder="Custom Layout" [(ngModel)]="customLayout">
</mat-form-field>
</td>
<td> <td>
<mat-select placeholder="MediaMode" [(ngModel)]="selectedMediaMode"> <mat-select placeholder="MediaMode" [(ngModel)]="selectedMediaMode">
<mat-option *ngFor="let mediaMode of mediaModes" [value]="mediaMode"> <mat-option *ngFor="let mediaMode of mediaModes" [value]="mediaMode">

View File

@ -35,6 +35,8 @@ export class TestApirestComponent implements OnInit, OnDestroy {
mediaModes = ['ROUTED']; mediaModes = ['ROUTED'];
selectedMediaMode = 'ROUTED'; selectedMediaMode = 'ROUTED';
customLayout = '';
// API REST data collected // API REST data collected
data = []; data = [];
@ -73,6 +75,7 @@ export class TestApirestComponent implements OnInit, OnDestroy {
{ {
recordingMode: RecordingMode[this.selectedRecordingMode], recordingMode: RecordingMode[this.selectedRecordingMode],
defaultRecordingLayout: RecordingLayout[this.selectedDefaultRecordingLayout], defaultRecordingLayout: RecordingLayout[this.selectedDefaultRecordingLayout],
defaultCustomLayout: this.customLayout,
mediaMode: MediaMode[this.selectedMediaMode] mediaMode: MediaMode[this.selectedMediaMode]
}) })
.then((sessionId) => { .then((sessionId) => {