“@zoom/react-native-videosdk”: “^1.12.10”,
Description
When I rotate my iPhone and want to rotate a camera on iOS. Only the first time I can see the red alert screen. Note: the video rotated properly on both platforms, Android works fine without any alerts:
Error
Argument 0 (NSNumber) of RNZoomVideoSdkVideoHelper.rotateMyVideo has unspecified nullability but React requires that all NSNumber arguments are explicitly marked as nonnull
to ensure compatibility with Android.
RCTLogArgumentError(RCTModuleMethod, unsigned long, objc_object*, char const*)
RCTModuleMethod.mm:67
-[RCTModuleMethod processMethodSignature]
-[RCTModuleMethod invokeWithBridge:module:arguments:]
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread*
code
*const _orientationDidChange = (orientation: OrientationType) => {
try {
if (!zoom || !zoom.videoHelper) return;
if (
orientation === OrientationType['LANDSCAPE-LEFT'] ||
orientation === OrientationType['LANDSCAPE-RIGHT']
) {
zoom.videoHelper.rotateMyVideo(1);
setVideoOrientation(orientation);
} else {
zoom.videoHelper.rotateMyVideo(0);
setVideoOrientation(OrientationType.PORTRAIT);
}
console.log('###Orientation did change : ', orientation);
} catch (error) {
console.log('###error on rotation', error);
}
};*
How To Reproduce
Steps to reproduce the behavior including:
1. try to call zoom.videoHelper.rotateMyVideo(1); on iOS