setVideoEffects

Sets the video effects configuration before a room is joined.

Seeds the next camera start. Call Room.setVideoEffects to change it while a room is running.

The request is not a guarantee. When VideoEffectsConfig.Pipeline.GRAPH cannot start, for example with no usable OpenGL ES runtime, capture stays on the LEGACY pipeline, which renders no effects, and RoomEventListener.onError receives VideoSDKError.ERROR_VIDEO_EFFECTS_GRAPH_UNAVAILABLE with the cause in its message. The camera keeps running. Read applied and reason rather than assuming.

Before any camera has started, a GRAPH request returns applied false with a reason starting pending:: it is kept, and the next camera start runs it.

Return

the applied configuration: config as the SDK read it, plus applied (false when the request could not be honoured), reason, tier and degradeLevel.

Parameters

config

the configuration to apply.