-
Notifications
You must be signed in to change notification settings - Fork 54
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
No mechanism for disabling sounds #14
Comments
Hi @doryphores, I'm creating an internal ticket for this and you should expect this to be fixed in an upcoming patch release. If you were using |
@ryan-rowland is there an update on this? |
Any update on this? |
@ryan-rowland Any update on this? We really really want to upgrade 😄 |
@ryan-rowland any news on this? |
Maybe impacted by the recent twilio layoffs? |
Hello everyone, apologies for the delay. I updated our internal ticket and it will be considered in the next release. |
I'm obliged to make the "_enabledSounds" public to disable the outgoing and incoming sounds: device._enabledSounds[Device.SoundName.Outgoing] = false; Not great, but at least it does the trick. |
@kamalbennani , you can definitely do that as a temporary workaround. But please keep in mind that _enabledSounds is a private member and might cause breaking changes in the future. But as long as you do manual updates and testing your updates before deployment, you should be good. |
@charliesantos by checking the code I see that everything is already implemented, the only thing missing is to type the Audio class correctly, if that's the case, I can push a PR to fix the typing issue, is that fine with you? |
@kamalbennani we have not looked into it yet but please feel free to submit a PR :) |
Hey everyone, the mechanism to enable and disable sounds is still available. Since there's no singleton behavior on the const device = new Device(...);
device.audio.incoming(false);
device.audio.outgoing(false);
device.audio.disconnect(false); |
That's great to hear @charliesantos. I can confirm that it does work but it looks like the Typescript type definitions are missing for these functions. |
Thanks for confirming @doryphores . Definitions will be added in a future release. |
Should be fixed in 2.4.0 |
v1 had an API to enable/disable sounds:
I can see some code related to this in v2:
twilio-voice.js/lib/twilio/device.ts
Lines 349 to 353 in 385c31f
But there doesn't seem to be a public API to configure the settings.
Is this an oversight? It is currently blocking us from upgrading.
The text was updated successfully, but these errors were encountered: