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>
<th>Recording Mode</th>
<th>Default Recording Layout</th>
<th *ngIf="this.selectedDefaultRecordingLayout === 'CUSTOM'">Default Custom Layout</th>
<th>Media Mode</th>
</tr>
<tr id="tr-session-properties">
@ -34,6 +35,11 @@
</mat-option>
</mat-select>
</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>
<mat-select placeholder="MediaMode" [(ngModel)]="selectedMediaMode">
<mat-option *ngFor="let mediaMode of mediaModes" [value]="mediaMode">

View File

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