setVideoEffects method

Future<Map<String, dynamic>?> setVideoEffects(
  1. VideoEffectsConfig config
)

Applies config to the outgoing camera video; see VideoSDK.setVideoEffects for the two engines.

Returns what is actually running: {engine, applied, reason, pipeline, framing, lighting, style, filter}. While the camera is off nothing runs, so engine is none and applied is false with a reason; the config is kept and applies when the camera starts. applied is also false, with a reason, when a change cannot reach the running camera. Effect changes within one pipeline apply on the next frame with no restart; a pipeline change restarts capture in place on Android. Send the whole config each time, and chain calls rather than overlapping them.

Implementation

Future<Map<String, dynamic>?> setVideoEffects(VideoEffectsConfig config) =>
    _backend.setVideoEffects(config.toJson());