[英]Twilio Flask app video call is not connecting over a public IP address
I created an application in Flask Python with a frontend in HTML and Twilio SDK JavaScript version 2.3.0. I created an application in Flask Python with a frontend in HTML and Twilio SDK JavaScript version 2.3.0.
A video call is working on local host, but if I try the same app over HTTPS with a valid certificate, it is fetching the token correctly for the video call, but it can't establish a connection to Twilio.视频通话正在本地主机上运行,但如果我使用有效证书在HTTPS上尝试相同的应用程序,它会为视频通话正确获取令牌,但无法建立与 Twilio 的连接。
I have tried forcing the browser permissions for the camera and audio to allow and it did not make a difference.我尝试强制允许相机和音频的浏览器权限,但没有任何区别。
So to load the Twilio script, you need to enable https in both the website and the script.因此,要加载 Twilio 脚本,您需要在网站和脚本中启用 https。 Otherwise, it will mix up HTTP and HTTPS and fail.
否则,它将混淆 HTTP 和 HTTPS 并失败。 So there are two simple things to do:
所以有两个简单的事情要做:
https://media.twiliocdn.com/sdk/js/video/releases/2.3.0/twilio-video.min.js
file over HTTPS in file index.html .https://media.twiliocdn.com/sdk/js/video/releases/2.3.0/twilio-video.min.js
文件加载到 HTTPS 文件index.ZFC35FDC70D5FC69D236E This will solve your problem.这将解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.