1.22.0

Audio output management has been revamped!

🔨 What changed?

The SDK does not depend on react-native-incall-manager for audio output management anymore. The SDK has native methods and state management internally to handle this now.

💡 How to migrate?

Setup

Remove the react-native-incall-manager library from your app’s dependencies

npm uninstall react-native-incall-manager
# or using yarn
yarn remove react-native-incall-manager

Also, the peer dependency of the SDK to the @stream-io/react-native-webrtc library is updated now to >=125.4.4. Make sure that this peer dependency is satisfied.

Usage

Before joining a call or as soon as you join a call, call the start() method from callManager module of the SDK. Once the call is left, use the stop() method from callManager module.

import { callManager } from "@stream-io/video-react-native-sdk";

// To be called before joining a call or as soon as joining a call
callManager.start({
  audioRole: "communicator",
  deviceEndpointType: "speaker",
});

// To be called when a call is left
callManager.stop();

Please visit our Speaker management documentation for more detailed information.

✨ New Features

  • Support for audio output device selection
  • Support to turn off low latency audio output for audio subscriber only usecases like livestream viewership
  • Support for system wide audio muting and unmuting
© Getstream.io, Inc. All Rights Reserved.