You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to make a react-native app with a publisher screen. This screen displays my own camera and of course publishes it to a subscriber. My own camera resolution is 3:4 and therefor, the rest of the screen is black. Now I want to start an interval that fetches the current img data every 3 seconds and puts this as a blurred background image.
With the regular react-library I could just create a ref, hand it to the OTPublisher component and fetch the image by calling publisherRef.current.state.publisher.getImgData(). However, the react-native library only has true as a value of publisherRef.current.state.publisher, so I can't access the publisher instance directly.
After searching in the source code, I could not find any way to directly get the publisher instance.
Proposal
Store the publisher instance in the OTPublisher components state variable.
Thanks in advance :)
The text was updated successfully, but these errors were encountered:
Feature Request
Description
I am currently trying to make a react-native app with a publisher screen. This screen displays my own camera and of course publishes it to a subscriber. My own camera resolution is 3:4 and therefor, the rest of the screen is black. Now I want to start an interval that fetches the current img data every 3 seconds and puts this as a blurred background image.
With the regular react-library I could just create a ref, hand it to the
OTPublisher
component and fetch the image by callingpublisherRef.current.state.publisher.getImgData()
. However, the react-native library only hastrue
as a value ofpublisherRef.current.state.publisher
, so I can't access the publisher instance directly.After searching in the source code, I could not find any way to directly get the publisher instance.
Proposal
Store the publisher instance in the
OTPublisher
components state variable.Thanks in advance :)
The text was updated successfully, but these errors were encountered: