setVideoEffects

Changes the video effects configuration while the room is running.

The pipeline switch takes effect at the next camera start, because the capture session's targets are fixed once it is configured: toggle the webcam, or switch cameras, for a live change. Effect settings are swapped immediately while the GPU pipeline runs.

The request is not a guarantee. When VideoEffectsConfig.Pipeline.GRAPH cannot start, for example with no usable OpenGL ES runtime, video is sent without effects on Pipeline.LEGACY and RoomEventListener.onError receives VideoSDKError.ERROR_VIDEO_EFFECTS_GRAPH_UNAVAILABLE with the cause in its message, at the camera start that tries it or in reply to this call. The call keeps running. Read applied and reason in the reply rather than assuming.

A GRAPH request made before any camera has started replies applied false with a reason starting pending:, and starts with the next camera.

Return

the applied configuration: the parsed document plus applied, reason, tier and degradeLevel.

Parameters

config

the configuration to apply.