-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(react-native): replace useCallControls hook with useMediaStr…
…eamManagement (#904) The goal of the PR is to remove the `useCallControls` hook as `useMediaStreamManagement` covers most of the operations of it. Also: - the `toggleAudioMuted` and `toggleVideoMuted` are moved to the hook `useMediaStreamManagement` for the integrator's simplicity. - the `isVideoMuted` and `isAudioMuted` is also moved to the same hook for the integrator's simplicity so that they don't have to take out the mute status data from `useLocalParticipants` manually(no documentation for this so it's easy for integrators to get lost). PS: The relevant docs are also updated.
- Loading branch information
Showing
6 changed files
with
72 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
export * from './useCallControls'; | ||
export * from './useLocalVideoStream'; | ||
export * from './useIncallManager'; | ||
export * from './usePermissionRequest'; | ||
export * from './usePermissionNotification'; | ||
export * from './push'; | ||
export * from './useAndroidKeepCallAliveEffect'; | ||
export * from './useCallControls'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters