1.16.0

Summary

This guide covers breaking changes in version 1.16.0: removal of useCallMediaStreamCleanup hook (requiring manual cleanup), removal of useApplyDefaultMediaStreamSettings, and removal of unused hooks and types.

🚨 Breaking Changes

1. Removal of useCallMediaStreamCleanup hook

The useCallMediaStreamCleanup hook has been removed. For Lobby or Outgoing Call, manually clean up camera and microphone by calling call.leave(), which disposes audio and video streams:

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

const call = useCall();

useEffect(() => {
  if (call?.state.callingState !== CallingState.LEFT) {
    call.leave();
  }
}, [call]);

2. Removal of useApplyDefaultMediaStreamSettings hook

The useApplyDefaultMediaStreamSettings hook is removed. Default settings are now applied automatically by call.get(), call.getOrCreate(), or call.join().

💡 Non-Breaking Changes

Removed unused hooks and types

The following hooks and types have been removed:

  • useStreamVideoStoreValue
  • useStreamVideoStoreSetState
  • SDKStreamVideoStore
  • StreamVideoStoreProvider
  • MediaDeviceInfo

🔍 Support

For migration issues, submit a ticket at support.