-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clickup task : https://app.clickup.com/t/22hy1k4
Description : The audio was not rendered because of re-rendering of react element based on queueCounter and roomInfo. This causes the dom to re-render when call gets accepted because after accepting call, queueCounter changes. The audio element gets recreated. But VoIP user probably holds the old one. The behaviour is not predictable when such case happens. If everything gets cleanly setup, even if the audio element goes headless, it still continues to play the remote audio. But in other cases, it is unreferenced the one on dom has its srcObject as null. This causes no audio. This fix provides a way to re-initialise the rendering elements in VoIP user and calls this function on useEffect() if the re-render has happen.
- Loading branch information
1 parent
8242369
commit 378bacb
Showing
3 changed files
with
67 additions
and
1 deletion.
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