From 1f73724405380c77200befa4c1001bdcd605e5e5 Mon Sep 17 00:00:00 2001 From: YuliaGrigorieva Date: Tue, 24 Jan 2023 19:34:54 +0300 Subject: [PATCH] Update changelog and sdk version to 1.36.0 --- CHANGELOG.md | 3 +++ .../com/voximplant/reactnative/VIClientModule.java | 2 +- ios/RNVIClientModule.m | 2 +- package.json | 2 +- react-native-voximplant.podspec | 2 +- src/hardware/CameraManager.js | 10 +++++----- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32889ce..cc1e12d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### 1.36.0 +- Introduce [CameraManager.useOrientationEventListener](https://voximplant.com/docs/references/reactnative/voximplant/hardware/cameramanager#useorientationeventlistener) API to use Android orientation event listener to rotate video frames + ### 1.35.0 - Update native Android and iOS modules to use Voximplant Android SDK 2.34.0 and Voximplant iOS SDK 2.46.11 diff --git a/android/src/main/java/com/voximplant/reactnative/VIClientModule.java b/android/src/main/java/com/voximplant/reactnative/VIClientModule.java index e526430..d93f876 100644 --- a/android/src/main/java/com/voximplant/reactnative/VIClientModule.java +++ b/android/src/main/java/com/voximplant/reactnative/VIClientModule.java @@ -101,7 +101,7 @@ public String getName() { //region React methods @ReactMethod public void init(ReadableMap settings) { - Voximplant.subVersion = "react-1.35.0"; + Voximplant.subVersion = "react-1.36.0"; ClientConfig config = Utils.convertClientConfigFromMap(settings); mClient = Voximplant.getClientInstance(Executors.newSingleThreadExecutor(), mReactContext, config); mClient.setClientIncomingCallListener(this); diff --git a/ios/RNVIClientModule.m b/ios/RNVIClientModule.m index 1fd15db..fce1291 100644 --- a/ios/RNVIClientModule.m +++ b/ios/RNVIClientModule.m @@ -80,7 +80,7 @@ - (void)stopObserving { RCT_EXPORT_METHOD(initWithOptions:(NSDictionary *)options) { VILogLevel logLevel = [RNVIUtils convertLogLevelFromString:[options objectForKey:@"logLevel"]]; [VIClient setLogLevel:logLevel]; - [VIClient setVersionExtension:@"react-1.35.0"]; + [VIClient setVersionExtension:@"react-1.36.0"]; BOOL h264RecoveryMode = [[options objectForKey:@"h264RecoveryMode"] boolValue]; if (h264RecoveryMode) { RTCInitFieldTrialDictionary(@{ diff --git a/package.json b/package.json index 6037836..26818ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-voximplant", - "version": "1.35.0", + "version": "1.36.0", "description": "VoxImplant Mobile SDK for embedding voice and video communication into React Native apps.", "nativePackage": true, "keywords": [ diff --git a/react-native-voximplant.podspec b/react-native-voximplant.podspec index 2612fac..5e61e65 100644 --- a/react-native-voximplant.podspec +++ b/react-native-voximplant.podspec @@ -7,7 +7,7 @@ Pod::Spec.new do |s| s.homepage = 'https://github.com/voximplant/react-native-voximplant' s.source = {:path => './ios/'} s.summary = 'RN voximplant' - s.version = '1.35.0' + s.version = '1.36.0' s.dependency 'VoxImplantSDK', '2.46.11' s.dependency 'React' end diff --git a/src/hardware/CameraManager.js b/src/hardware/CameraManager.js index 83143ac..e8da3c9 100644 --- a/src/hardware/CameraManager.js +++ b/src/hardware/CameraManager.js @@ -73,17 +73,17 @@ export default class CameraManager { } /** - * ANDROID ONLY. - * - * Use OrientationEventListener to detect the device rotation and to rotate camera frames according to device orientation. + * Use OrientationEventListener on Android to detect the device rotation and to rotate camera frames according to device orientation. * * By default, Display rotation is used to determine the device rotation. * * The way how the device orientation is detected, affects camera frames rotation on local and remote side if auto-rotate is disabled on a mobile phone: + * 1. OrientationEventListener will detect landscape orientation + * 2. Display rotation will always report portrait orientation * - * OrientationEventListener will detect landscape orientation - * Display rotation will always report portrait orientation * The method should be called in idle camera state, i.e. video is currently not sending in a call. + * + * ANDROID ONLY * @param {boolean} use - True, if OrientationEventListener should be used to detect the device orientation, otherwise Display rotation is used. * @memberOf Voximplant.Hardware.CameraManager */