我正在使用openfire,我想在我的应用程序中添加语音和视频通话功能。首先,我安装了两个插件ofmeet.jar和offocus.jar。
然后我在openfire中安装了让加密通配符证书。例如:
/snap/bin/certbot certonly --dns-route53 -d example.com,*.example.com已通过管理仪表板在openfire中安装这些生成的证书。
已创建指向VPS IP地址的子域openfire.example.com。但是,我的完全限定域名是example.com。
在android中添加了开始会议的代码
try {
JitsiMeetConferenceOptions.Builder options = new JitsiMeetConferenceOptions.Builder()
.setServerURL(new URL(“https://openfire.example.com”))
.setRoom(“testroom”)
.setWelcomePageEnabled(false);
JitsiMeetActivity.launch(OutGoingMeetingInvitation.this, options.build());
finish();
} catch (Exception ex) {
ex.printStackTrace();
}我得到错误的android手机,我断开连接和重新连接在几秒钟内。在android studio中,我遇到错误
E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://call.example.com/config.js?room=call_1606192562839 Error(AbortError){“message”:“Aborted”,“stack”:“Error: Aborted\n at anonymous (index.android.bundle:135:6514)\n at anonymous (index.android.bundle:135:7422)\n at call (native)\n at dispatchEvent (index.android.bundle:126:5676)\n at value (index.android.bundle:121:5993)\n at value (index.android.bundle:121:5621)\n at l (index.android.bundle:135:6840)\n at call (native)\n at dispatchEvent (index.android.bundle:144:5676)\n at value (index.android.bundle:143:1114)\n at anonymous (index.android.bundle:876:490)\n at anonymous (index.android.bundle:399:500)\n at apply (native)\n at value (index.android.bundle:50:1280)\n at apply (native)\n at value (index.android.bundle:37:3685)\n at anonymous (index.android.bundle:37:841)\n at value (index.android.bundle:37:2939)\n at value (index.android.bundle:37:813)”}
I/JitsiMeetSDK: [features/overlay] The conference will be reloaded after 11 seconds.请帮我解决这个问题。
发布于 2021-01-20 14:24:21
此问题可能是由于外部端口造成的。在服务器中启用UDP端口为我解决了这个问题,在您的服务器中请确保以下端口已启用,
上的RTP媒体
https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker
使用Ubuntu的
<代码>H1265349TCP-用于通过TCP进行备用网络视频/音频通信(例如,当UDP被阻止时),由coturn<代码>H227<代码>F228
更多信息here
https://stackoverflow.com/questions/64984090
复制相似问题