Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@Component({
selector: 'app-session-api-dialog',
templateUrl: './session-api-dialog.component.html',
styleUrls: ['./session-api-dialog.component.css']
})
export class SessionApiDialogComponent {
OV: OpenViduAPI;
session: SessionAPI;
sessionId: string;
recordingId: string;
resourceId: string;
response: string;
recordingProperties: RecordingProperties;
recMode = Recording.OutputMode;
recLayouts = RecordingLayout;
customLayout = '';
recPropertiesIcon = 'add_circle';
showRecProperties = false;
constructor(public dialogRef: MatDialogRef,
@Inject(MAT_DIALOG_DATA) public data) {
this.OV = data.openVidu;
this.session = data.session;
this.sessionId = data.sessionId;
this.recordingProperties = data.recordingProperties;
}
closeSession() {
console.log('Closing session');
if (!this.session) {
styleUrls: ['./session-properties-dialog.component.css']
})
export class SessionPropertiesDialogComponent {
sessionProperties: SessionProperties;
turnConf: string;
manualTurnConf: RTCIceServer = { urls: [] };
customToken: string;
tokenOptions: TokenOptions;
filterName = 'GStreamerFilter';
filters: string[] = [];
mediaMode = MediaMode;
recordingMode = RecordingMode;
defaultOutputMode = Recording.OutputMode;
defaultRecordingLayout = RecordingLayout;
constructor(public dialogRef: MatDialogRef,
@Inject(MAT_DIALOG_DATA) public data) {
this.sessionProperties = data.sessionProperties;
this.turnConf = data.turnConf;
this.manualTurnConf = data.manualTurnConf;
this.tokenOptions = data.tokenOptions;
this.customToken = data.customToken;
}
enumToArray(enumerator: any) {
return Object.keys(enumerator);
}
generateTokenOptions(): TokenOptions {