Function: useFishjamCameraEffect()
useFishjamCameraEffect(
effect,options):FishjamCameraEffectResult
Defined in: react-native/useFishjamCameraEffect.ts:58
Applies an effect to the camera track Fishjam publishes, through useCamera's camera-track
middleware. Pass null to publish the plain camera again. While the effect is still loading,
the camera is published untouched, so the track is never black.
const blur = useBackgroundBlur({ segmentation, radius: 24 }); const { status, error } = useFishjamCameraEffect(blurEnabled ? blur : null);
Parameters​
| Parameter | Type |
|---|---|
effect | null | VideoEffect<unknown> |
options | FishjamCameraEffectOptions |