Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

opentok-react-native

Package Overview
Dependencies
Maintainers
5
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentok-react-native - npm Package Compare versions

Comparing version 2.28.0 to 2.28.1

android/.gradle/8.9/checksums/checksums.lock

16

@types/index.d.ts

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc