opentok-react-native
Advanced tools
Comparing version 2.28.0 to 2.28.1
@@ -227,2 +227,7 @@ declare module "opentok-react-native" { | ||
}; | ||
/** | ||
* Enable single peer connection for the client. | ||
*/ | ||
enableSinglePeerConnection?: boolean; | ||
} | ||
@@ -514,2 +519,13 @@ | ||
/** | ||
* Sets audio transformers for the publisher (or clears them if passed an empty array). | ||
* To use this method, add `pod 'VonageClientSDKVideoTransformers'` to your | ||
* Podfile and add `implementation "com.vonage:client-sdk-video-transformers:2.28.0"` | ||
* to your your app/build.gradle file. | ||
*/ | ||
setAudioTransformers: (transformers: Array<{ | ||
name: string, | ||
properties?: string, | ||
}>) => void; | ||
/** | ||
* Sets video transformers for the publisher (or clears them if passed an empty array). | ||
@@ -516,0 +532,0 @@ * To use this method, add `pod 'VonageClientSDKVideoTransformers'` to your |
@@ -0,1 +1,16 @@ | ||
# 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: | ||
```js | ||
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](https://tokbox.com/developer/guides/vonage-media-processor/react-native/#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](https://tokbox.com/developer/guides/create-session/#single-peer-connection). | ||
# 2.28.0 (July 2024) | ||
@@ -9,2 +24,4 @@ | ||
- [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. | ||
@@ -11,0 +28,0 @@ |
{ | ||
"name": "opentok-react-native", | ||
"version": "2.28.0", | ||
"version": "2.28.1", | ||
"description": "React Native components for OpenTok iOS and Android SDKs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -66,3 +66,3 @@ # opentok-react-native | ||
3. If your app will use the `OTPublisher.setVideoTransformers()` method, you need to include the following in your Podfile: | ||
3. If your app will use the `OTPublisher.setVideoTransformers()` or `OTPublisher.setAudioTransformers()` method, you need to include the following in your Podfile: | ||
@@ -131,3 +131,3 @@ ``` | ||
3. If your app will use the `OTPublisher.setVideoTransformers()` method, you need to include the following in your app/build.gradle file: | ||
3. If your app will use the `OTPublisher.setVideoTransformers()` or `OTPublisher.setAudioTransformers()` method, you need to include the following in your app/build.gradle file: | ||
@@ -134,0 +134,0 @@ ``` |
@@ -109,2 +109,3 @@ import { Platform } from 'react-native'; | ||
androidZOrder: '', // 'mediaOverlay' || 'onTop' | ||
enableSinglePeerConnection: false, | ||
}; | ||
@@ -118,2 +119,3 @@ } else { | ||
enableStereoOutput: false, | ||
enableSinglePeerConnection: false, | ||
}; | ||
@@ -133,2 +135,3 @@ } | ||
enableStereoOutput: 'boolean', | ||
enableSinglePeerConnection: 'boolean', | ||
}, | ||
@@ -144,2 +147,3 @@ android: { | ||
enableStereoOutput: 'boolean', | ||
enableSinglePeerConnection: 'boolean', | ||
}, | ||
@@ -146,0 +150,0 @@ }; |
@@ -192,2 +192,6 @@ import React, { Component } from 'react'; | ||
setAudioTransformers(audioTransformers) { | ||
OT.setAudioTransformers(this.state.publisherId, audioTransformers); | ||
} | ||
setVideoTransformers(videoTransformers) { | ||
@@ -218,2 +222,3 @@ OT.setVideoTransformers(this.state.publisherId, videoTransformers); | ||
getRtcStatsReport: PropTypes.object, // eslint-disable-line react/forbid-prop-types | ||
setAudioTransformers: PropTypes.func, // eslint-disable-line react/forbid-prop-types | ||
setVideoTransformers: PropTypes.func, // eslint-disable-line react/forbid-prop-types | ||
@@ -220,0 +225,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1568065
136
1888
7