Skip to main content
Version: 0.31.0

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​

ParameterType
effectnull | VideoEffect<unknown>
optionsFishjamCameraEffectOptions

Returns​

FishjamCameraEffectResult