You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We are trying to use the SDK to create a voice call experience. But there doesn't seem to be a way to get the real time track volume levels from the SDK. Use useTrackVolume directly from @livekit/components-react shows the following error:
Error: Audio Context not supported on this browser
Apparently it's using a web API that's not supported in React Native. So it's difficult to build a great audio experience that gives the user real-time visual feedback.
Describe the solution you'd like
It would be greatly helpful to have support for this hook.
Describe alternatives you've considered
Daily.js has this feature in their React Native SDK. I believe they are also based on React-native-webRTC
This is vital to deliver a good UX. I wouldn't even need the components. Just being able to subscribe to audio level would be enough. Going to try and find a workaround in the meantime and will share.
Is your feature request related to a problem? Please describe.
We are trying to use the SDK to create a voice call experience. But there doesn't seem to be a way to get the real time track volume levels from the SDK. Use
useTrackVolume
directly from@livekit/components-react
shows the following error:Apparently it's using a web API that's not supported in React Native. So it's difficult to build a great audio experience that gives the user real-time visual feedback.
Describe the solution you'd like
It would be greatly helpful to have support for this hook.
Describe alternatives you've considered
Daily.js has this feature in their React Native SDK. I believe they are also based on React-native-webRTC
https://docs.daily.co/reference/rn-daily-js/instance-methods/start-local-audio-level-observer
https://docs.daily.co/reference/rn-daily-js/instance-methods/start-remote-participants-audio-level-observer
Additional context
Any workaround is greatly appreciated as well.
The text was updated successfully, but these errors were encountered: