Camera Effects Reference
The Whereby Camera Effects SDK is the low-level foundation for applying real-time visual effects to camera streams within the Whereby ecosystem. It provides a set of predefined images and videos that can be used as background effects on an existing video stream. It's meant to be used alongside Whereby's other SDK's, like the React Hooks browser SDK, or Whereby Core.
Use Case
Implementing camera effects such as background blur, background images, or video backgrounds for use with either @whereby.com/core or @whereby.com/browser-sdk/react
Requirements
The Camera Effects SDK is intended for browser environments and requires access to modern browser APIs.
Getting started
Installation
Camera effects ship with @whereby.com/core and @whereby.com/browser-sdk, so installing either of those is all you need:
npm install @whereby.com/browser-sdk
# or, for the low-level core SDK
npm install @whereby.com/coreyarn add @whereby.com/browser-sdk
# or, for the low-level core SDK
yarn add @whereby.com/corepnpm add @whereby.com/browser-sdk
# or, for the low-level core SDK
pnpm add @whereby.com/coreUsage
Use the getUsableCameraEffectPresets() helper to list the presets that are supported in the current browser, then apply one with the switchCameraEffect action. Both are exposed by @whereby.com/core and @whereby.com/browser-sdk/react, so you never import @whereby.com/camera-effects directly.
Last updated
Was this helpful?

