Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: support for useTrackVolume #183

Open
leethree opened this issue Nov 5, 2024 · 4 comments
Open

Feature: support for useTrackVolume #183

leethree opened this issue Nov 5, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@leethree
Copy link

leethree commented Nov 5, 2024

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

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.

@leethree leethree added the enhancement New feature or request label Nov 5, 2024
@kradkfl
Copy link

kradkfl commented Dec 31, 2024

Did you manage to find a workaround? Running into a similar need for an UI / UX we're building.

@davidzhao
Copy link
Member

we are working on this.. planning to have audio level exposed to RN along with audio visualizer components.

@a29paul
Copy link

a29paul commented Jan 3, 2025

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.

@jlin3
Copy link

jlin3 commented Jan 25, 2025

@davidzhao so stoked you're working on this! do you have a timeline? im super keen on being a beta tester :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants