How to use the openvidu-browser.Filter function in openvidu-browser

To help you get started, we’ve selected a few openvidu-browser 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 / publisher-properties-dialog / publisher-properties-dialog.component.ts View on Github external
if (typeof this.videoSource === 'string') {
            if (!!this.videoSource) {
                this.publisherProperties.videoSource = this.videoSource;
            } else {
                this.publisherProperties.videoSource = undefined;
            }
        }
        try {
            this.filter.options = JSON.parse(this.stringOptions);
        } catch (e) {
            console.error('Invalid JSON object in "Filter options" field');
        }
        if (!this.filter.type) {
            delete this.publisherProperties.filter;
        } else {
            this.publisherProperties.filter = new Filter(this.filter.type, this.filter.options);
        }
        return this.publisherProperties;
    }

openvidu-browser

OpenVidu Browser

Apache-2.0
Latest version published 6 months ago

Package Health Score

63 / 100
Full package analysis

Similar packages