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

Whether the subscriber can get the actual resolution of the video #674

Closed gomashiox closed 5 months ago

gomashiox commented 1 year ago

Hello, Is there any way to get the WIDTH and HEIGHT for each of the subscribed frames?

I would like to always get the actual resolution on the subscriber side because the resolution of the video dynamically changes according to the network strength of the mobile device.

I think this is for iOS, but I would like to know if there is any sample code. https://tokbox.com/developer/sdks/ios/reference/Classes/OTVideoFormat.html#//api/name/imageWidth

If it is already available, I would be happy to point it out. Thanks.

rhainer commented 1 year ago

@gomashiox - Good question. That should be possible but I need to check with some developers who are unavailable this week. I will try to get back to you on this soon.

jeffswartz commented 1 year ago

There is currently no way to access this. The OpenTok React Native SDK does not expose the videoRenderer property or the OTVideoFrame.format.imageWidth for a subscriber's rendered frames.

pietgk commented 11 months ago

Any status if/when this will be fixed?

beHaze commented 5 months ago

@pietgkwe unfortunately, we do not have a way to get the width or height of each rendered frame.