Twilio 客户端“静音"按钮不起作用 [英] Twilio Client "Mute" button not working
本文介绍了Twilio 客户端“静音"按钮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在通过 Twilio 客户端静音"拨出电话时遇到问题.当我接到拨入电话时,我可以将电话静音,但是,当我拨打拨出电话时,静音按钮不起作用.我已经尝试了所有我能想到的方法来使这个静音按钮起作用,但我所做的一切都不起作用.这是代码的链接:
I am having a problem "Muting" an outgoing call through Twilio Client. I am able to mute calls when I receive an incoming call, however, when I make an outgoing call, the mute button does not work. I have tried everything I can think of to make this mute button work but nothing I do works. Here is a link with the code:
<script type="text/javascript">
function call() {
//Get the phone number to connect the call to
params = {"PhoneNumber": $("#number").val()};
Twilio.Device.connect(params);
$("#mute").click(function() {
conn.mute();
});
}
</script>
<button id="mute">
Mute
</button>
请帮忙解决这个问题.它一直让我发疯.我想不通!谢谢
Please help with this. It has been driving me crazy. I cannot figure this out! Thanks
推荐答案
你不应该设置 conn = Twilio.Device.connect(params);
?
https://www.twilio.com/docs/api/client/设备#connect
这篇关于Twilio 客户端“静音"按钮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文