opentok-react-native
Advanced tools
Changelog
2.28.1 (September 2024)
[Update]: The new OTPublisher.setAudioTransformers()
method lets you set (and clear) audio transformers. One transformer, the noise suppression filter, is supported. To use this, call the setAudioTransformers()
method of the OTPublisher ref, and pass in an array with one object that has a name
property set to 'NoiseSuppression'
and a properties
property set to an empty string:
publisherRef.setAudioTransformers([{
name: 'NoiseSuppression',
properties: '',
}]);
Important: To use this method, you must add the Vonage Media Transformer library to your project, separately from the OpenTok React Native SDK. See Vonage Media Library integration.
[Update]: This version adds support for enabling single peer connection for the client, by setting the enableSinglePeerConnection
property of the options
prop of the OTSession component to true
. For more information see this documentation.
Changelog
2.28.0 (July 2024)
[Update]: This version updates the Vonage Video Android SDK and iOS SDK to version 2.28.0.
[Update]: The Vonage Video iOS and Android SDKs loaded by this version are reduced in size by removing Vonage Media Library code.
Important: In order to use the OTPublisher.setVideoTransformers()
method (which uses the Vonage Media Library), you must add the Vonage Media Library separately from the Vonage Video React Native SDK. For details, see Vonage Media Library integration.
[Update]: For Android, this version of the library requires a minimum Android API level of 24.
[Update]: This version adds support for reading the Certificate Authority certificates in the trust store of the host so that it can use them as valid root certificates when connecting to OpenTok services.
[Update]: This version adds support for Apple's requirement of the signature for the SDK.
[Update]: This version updates a vulnerable Node module (braces).
Changelog
2.27.6 (June 2024)
Changelog
2.27.5 (June 2024)
[Fix]: This version fixes the OTSubscriber captionReceived
event handler. It also fixes the OTPublisher publishCaptions
option in iOS.
[Fix]: Calling OTSubscriber.getRtcStatsReport()
method was resulting in an error. This version fixes the issue.
[Fix]: Setting the enableStereoOutput
option of the OTSession component was causing apps to crash in Android. The custom audio driver (used in Android when the enableStereoOutput
option is set) is broken. This version disables the enableStereoOutput
option in Android.
[Fix] The subscribeToSelf
prop of the OTSubscriber component was not working. This version fixes the issue (issue #612).
Changelog
2.25.5 (April 2024)
Changelog
2.26.2 (April 2024)
Changelog
2.27.4 (April 2024)
[Update]: This version updates the Vonage Video iOS SDK version to 2.27.3. This version adds a privacy manifest required by Apple's App store. Issue #737.
[Update]: The installation instructions in the README file are updated, with new details on required Android permissions (such as android.permission.BLUETOOTH
).
Changelog
2.27.3 (March 2024)
[Update]: This version updates the Vonage Video iOS SDK version to 2.27.2 and the Vonage Video Android SDK version to 2.27.1. See their release notes for details:
[Fix] Toggling between a screen and camera video source for publisher caused apps to crash in iOS. This version fixes the issue (issue #710).
Changelog
2.27.2 (March 2024)
videoSource
setting set to "screen"
) failed if the app did not have camera access permission. This version fixes the issue, so that screen-sharing can proceed without camera access permission.Note: In Android 6.0 (API Level 23
) and higher, the OpenTok React Native SDK automatically adds the camera access permission. However, an app or user can disable it independently of the SDK.
Changelog
2.27.1 (March 2024)
PermissionsAndroid.PERMISSIONS.CAMERA
or PermissionsAndroid.PERMISSIONS.RECORD_AUDIO
were not true
. This version fixes that, by having audio-only or video-only publishers skip the PermissionsAndroid.PERMISSIONS.CAMERA
or PermissionsAndroid.PERMISSIONS.RECORD_AUDIO
check if the videoTrack
or audioTrack
property of the properties
prop of the OTPublisher component is set to false
. You can set these props to false
based on these permissions:import { PermissionsAndroid } from 'react-native';
// ...
<OTPublisher
properties={{
videoTrack={{(Platform.OS === 'ios' || PermissionsAndroid.CAMERA)}}
}}
/>
Note: In Android 6.0 (API Level 23
) and higher, the OpenTok React Native SDK automatically adds these permissions. However, an app or user can disable them independently of the SDK.
[Fix]: On Android, setting the videoTrack
property of the properties
prop of the OTPublisher component false
resulted in the app to crash. This version fixes the issue (issue #652).
[Fix]: Fixes some TypeScript definitions (issue #725).