Skip to content

Commit

Permalink
Merge pull request #782 from opentok/develop
Browse files Browse the repository at this point in the history
v2.28.2
  • Loading branch information
jeffswartz authored Sep 30, 2024
2 parents 889c68e + 4a8c854 commit 272dcfb
Show file tree
Hide file tree
Showing 7 changed files with 1,858 additions and 1,766 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 2.28.2 (September 2024)

- [Update]: This version updates the Vonage Video Android and iOS SDK to version 2.28.1. See the [Android SDK release notes](https://tokbox.com/developer/sdks/android/release-notes.html) and the [iOS SDK release notes](https://tokbox.com/developer/sdks/ios/release-notes.html).

- [Fix]: Updates react, react-native modules (and axios dependency), and replaces uuid with react-native-uuid. The fixes issue #769. And it prevents [an issue](https://github.com/uuidjs/uuid/issues/375) that would result from using an upgraded version of uuid.

- [Fix]: Fixes an error that resulted if you set an OTPublisher event handler for `streamCreated` without setting one for `streamDestroyed`.

# 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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ See the system requirements for the [OpenTok Android SDK](https://tokbox.com/dev
```
target '<YourProjectName>' do
# Pods for <YourProject>
pod 'OTXCFramework', '2.28.0'
pod 'OTXCFramework', '2.28.1'
end
```

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:${_reactNativeVersion}" // From node_modules
implementation 'com.opentok.android:opentok-android-sdk:2.28.0'
implementation 'com.opentok.android:opentok-android-sdk:2.28.1'
}
2 changes: 1 addition & 1 deletion opentok-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,swift}"

s.dependency 'React'
s.dependency 'OTXCFramework','2.28.0'
s.dependency 'OTXCFramework','2.28.1'
end
3,596 changes: 1,840 additions & 1,756 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opentok-react-native",
"version": "2.28.1",
"version": "2.28.2",
"description": "React Native components for OpenTok iOS and Android SDKs",
"main": "src/index.js",
"homepage": "https://www.tokbox.com",
Expand Down Expand Up @@ -31,7 +31,7 @@
"flow-bin": "^0.180.0",
"prop-types": "^15.7.2",
"underscore": "^1.13.0",
"uuid": "^3.4.0"
"react-native-uuid": "^2.0.2"
},
"devDependencies": {
"babel-jest": "29.7.0",
Expand All @@ -43,8 +43,8 @@
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "29.7.0",
"metro-react-native-babel-preset": "0.65.2",
"react": "^18.2.0",
"react-native": "^0.74.2",
"react": "^18.3.1",
"react-native": "^0.75.2",
"react-test-renderer": "^18.2.0"
},
"overrides": {
Expand Down
6 changes: 3 additions & 3 deletions src/OTPublisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Platform } from 'react-native';
import { isNull } from 'underscore';
import uuid from 'react-native-uuid';
import {
checkAndroidPermissions,
OT,
Expand All @@ -17,15 +18,14 @@ import OTPublisherView from './views/OTPublisherView';
import { getOtrnErrorEventHandler } from './helpers/OTHelper';
import { isConnected } from './helpers/OTSessionHelper';
import OTContext from './contexts/OTContext';
const uuid = require('uuid/v4');

class OTPublisher extends Component {
constructor(props, context) {
super(props, context);
this.state = {
initError: null,
publisher: null,
publisherId: uuid(),
publisherId: uuid.v4(),
};
this.initComponent();
}
Expand Down Expand Up @@ -182,7 +182,7 @@ class OTPublisher extends Component {
publisherStreamDestroyedHandler = (stream) => {
if (
this.props.eventHandlers
&& this.props.eventHandlers.streamCreated
&& this.props.eventHandlers.streamDestroyed
&& stream.publisherId === this.state.publisherId
) {
this.props.eventHandlers.streamDestroyed(stream);
Expand Down

0 comments on commit 272dcfb

Please sign in to comment.