Voice and video filters

OpenVidu API offers a simple way of applying filters to video and audio streams in the server side by making use of Kurento Media Server capabilities. This is the current status of filter support in OpenVidu:

You can apply one filter at a time to a published Stream. Every user subscribed to it will receive the modified stream.

You can remove an applied filter.

You can call any remote method offered by an applied filter

You can add and remove event listeners to any event dispatched by an applied filter.

You must configure in the participant token the allowed filters the user can apply.

WARNING: experimental option. This feature may suffer breaking changes in the near future.

Step by step

##### 1) Generate a token with the filters the user will be able to apply

This is a simple way of securing the ability of applying filters from OpenVidu Browser, so that not every user is able to apply any filter at any time.

API REST: include in the JSON body a parameter kurentoOptions with a property allowedFilters (a string array containing the name of the filters the user will be able to apply)

Moderators are not only able to call all of these methods over their Publisher.stream object, but also over any Subscriber.stream object. Also, they don't need any special token permission to apply filters and can bypass any token restriction set to other user tokens