How to use the openvidu-node-client.Recording.OutputMode function in openvidu-node-client

To help you get started, we’ve selected a few openvidu-node-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenVidu / openvidu / openvidu-testapp / src / app / components / dialogs / session-api-dialog / session-api-dialog.component.ts View on Github external
@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) {
github OpenVidu / openvidu / openvidu-testapp / src / app / components / dialogs / session-properties-dialog / session-properties-dialog.component.ts View on Github external
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 {