diff --git a/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.css b/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.css index 5c4c9594..f83aa643 100644 --- a/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.css +++ b/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.css @@ -36,4 +36,8 @@ mat-radio-button:first-child { #role-div { padding-top: 6px; padding-bottom: 15px; +} + +#record-div { + padding-bottom: 20px; } \ No newline at end of file diff --git a/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.html b/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.html index de5608d5..b2bf42e6 100644 --- a/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.html +++ b/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.html @@ -106,6 +106,10 @@ +
+ Record +
+
@@ -119,6 +123,6 @@ + [mat-dialog-close]="{sessionProperties: sessionProperties, turnConf: turnConf, manualTurnConf: manualTurnConf, tokenOptions: generateTokenOptions(), customToken: customToken, record: record}">SAVE
diff --git a/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.ts b/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.ts index b7427ed2..e5d25f73 100644 --- a/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.ts +++ b/openvidu-testapp/src/app/components/dialogs/session-properties-dialog/session-properties-dialog.component.ts @@ -15,6 +15,7 @@ export class SessionPropertiesDialogComponent { manualTurnConf: RTCIceServer = { urls: [] }; customToken: string; tokenOptions: TokenOptions; + record: boolean; filterName = 'GStreamerFilter'; filters: string[] = []; @@ -31,6 +32,7 @@ export class SessionPropertiesDialogComponent { this.manualTurnConf = data.manualTurnConf; this.tokenOptions = data.tokenOptions; this.customToken = data.customToken; + this.record = data.record; } enumToArray(enumerator: any) { diff --git a/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.ts b/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.ts index eda242a8..11267597 100644 --- a/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.ts +++ b/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.ts @@ -127,6 +127,7 @@ export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy { turnConf = 'auto'; manualTurnConf: RTCIceServer = { urls: [] }; customToken: string; + record: boolean = true; tokenOptions: TokenOptions = { role: OpenViduRole.PUBLISHER, kurentoOptions: { @@ -557,7 +558,8 @@ export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy { turnConf: this.turnConf, manualTurnConf: this.manualTurnConf, customToken: this.customToken, - tokenOptions: this.tokenOptions + tokenOptions: this.tokenOptions, + record: this.record }, width: '450px' }); @@ -572,6 +574,7 @@ export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy { this.manualTurnConf = result.manualTurnConf; this.customToken = result.customToken; this.tokenOptions = result.tokenOptions; + this.record = result.record; } document.getElementById('session-settings-btn-' + this.index).classList.remove('cdk-program-focused'); }); @@ -684,7 +687,7 @@ export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy { return this.OV_NodeClient.createSession(this.sessionProperties) .then(session_NodeClient => { this.sessionAPI = session_NodeClient; - return session_NodeClient.generateToken({ role: this.tokenOptions.role, kurentoOptions: this.tokenOptions.kurentoOptions }); + return session_NodeClient.generateToken({ role: this.tokenOptions.role, kurentoOptions: this.tokenOptions.kurentoOptions, record: this.record }); }); }