mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: default custom layout in API REST
parent
2887fae835
commit
53830573fa
|
@ -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">
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue