opentok / opentok-react-native

OpenTok React Native - a library for OpenTok iOS and Android SDKs
https://tokbox.com/
MIT License
210 stars 155 forks source link

Getting error on background blur ? #682

Closed kundanthe closed 9 months ago

kundanthe commented 1 year ago

PublisherKit.VideoTransformer backgroundBlur = new PublisherKit.VideoTransformer("BackgroundBlur", "{\"radius\":\"High\"}");

This complete syntax is given on documentation, And I am following same but this syntax is not executing at compile time.

I am getting this error.

'com.opentok.android.PublisherKit' is not an enclosing class ?

Needed some help full information.

kapilmishr commented 1 year ago

We are working to incorporate background blur in Opentok React Native lib.

jeffswartz commented 1 year ago

As @kapilmishr mentions, we will be adding a function to support the Vonage Media Processor library functionality, including background blur support. You will then access that JavaScript function in React Native. You do not have access to the PublisherKit directly in the OpenTok. React Native API.

kundanthe commented 1 year ago

Thank you @jeffswartz to letting me know. So when it will come on this library, We need to implement this feature as soon as possible.

kundanthe commented 1 year ago

Hi @jeffswartz you have any work around for this..?

marinaserranomontes commented 9 months ago

Hi @kundanthe

Background blur support was included in the latest version published v2.26.1 https://www.npmjs.com/package/opentok-react-native. The new OTPublisher.setVideoTransformers() method lets you set and clear video transformers such as a background blur for a publisher.

Thanks.