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

Expose methods for controling the mute state #2480

Closed
stefanceriu opened this issue Jul 17, 2024 · 2 comments
Closed

Expose methods for controling the mute state #2480

stefanceriu opened this issue Jul 17, 2024 · 2 comments
Assignees
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements

Comments

@stefanceriu
Copy link
Member

Your use case

What would you like to do?

Programatically mute or unmute the microphone.

Why would you like to do it?

So that we can sync the mute state between EC and CallKit

How would you like to achieve it?

Expose 2 new javaScript methods that the embedding client can call to 1) mute/unmute the call 2) read the current mute state

Have you considered any alternatives?

Tried finding the button based on one of it's properties and clicking it but that's fragile. Also, reading the mute state from the media device's audio track doesn't really work, presumably the track itself isn't muted.

Additional context

Useful for implementing element-hq/element-x-ios#3050

@stefanceriu stefanceriu added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Jul 17, 2024
@toger5 toger5 self-assigned this Jul 17, 2024
@toger5
Copy link
Contributor

toger5 commented Jul 17, 2024

I will try to work on this. (Starting my day with doing reviews however)

@toger5
Copy link
Contributor

toger5 commented Aug 5, 2024

This happened in #2482

@toger5 toger5 closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

No branches or pull requests

2 participants