mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp default recording SessionProperties
parent
ab13435af8
commit
c0cf7d9d4e
|
@ -16,7 +16,7 @@
|
|||
<table>
|
||||
<tr>
|
||||
<th>Recording Mode</th>
|
||||
<th>Recording Layout</th>
|
||||
<th>Default Recording Layout</th>
|
||||
<th>Media Mode</th>
|
||||
</tr>
|
||||
<tr id="tr-session-properties">
|
||||
|
@ -28,9 +28,9 @@
|
|||
</mat-select>
|
||||
</td>
|
||||
<td>
|
||||
<mat-select placeholder="RecordingLayout" [(ngModel)]="selectedRecordingLayout">
|
||||
<mat-option *ngFor="let recordingLayout of recordingLayouts" [value]="recordingLayout">
|
||||
{{ recordingLayout }}
|
||||
<mat-select placeholder="DeafaultRecordingLayout" [(ngModel)]="selectedDefaultRecordingLayout">
|
||||
<mat-option *ngFor="let defaultRecordingLayout of defaultRecordingLayouts" [value]="defaultRecordingLayout">
|
||||
{{ defaultRecordingLayout }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</td>
|
||||
|
|
|
@ -29,8 +29,8 @@ export class TestApirestComponent implements OnInit, OnDestroy {
|
|||
recordingModes = ['ALWAYS', 'MANUAL'];
|
||||
selectedRecordingMode = 'MANUAL';
|
||||
|
||||
recordingLayouts = ['BEST_FIT'];
|
||||
selectedRecordingLayout = 'BEST_FIT';
|
||||
defaultRecordingLayouts = ['BEST_FIT'];
|
||||
selectedDefaultRecordingLayout = 'BEST_FIT';
|
||||
|
||||
mediaModes = ['ROUTED'];
|
||||
selectedMediaMode = 'ROUTED';
|
||||
|
@ -72,7 +72,7 @@ export class TestApirestComponent implements OnInit, OnDestroy {
|
|||
this.openviduRestService.getSessionId(this.openviduUrl, this.openviduSecret,
|
||||
new SessionProperties.Builder()
|
||||
.recordingMode(RecordingMode[this.selectedRecordingMode])
|
||||
.recordingLayout(RecordingLayout[this.selectedRecordingLayout])
|
||||
.defaultRecordingLayout(RecordingLayout[this.selectedDefaultRecordingLayout])
|
||||
.mediaMode(MediaMode[this.selectedMediaMode])
|
||||
.build())
|
||||
.then((sessionId) => {
|
||||
|
|
Loading…
Reference in New Issue