我正在使用Jitsi颤振插件与8x8的吉思服务结合,将视频通话集成到我的移动应用程序中。
加入一次会议后,电话立即结束,Jitsi就结束了。日志表明基础Jitsi无法从8x8获取config.js:
E/JitsiMeetSDK(10937): [features/base/lib-jitsi-meet] Failed to load config from https://8x8.vc/vpaas-magic-cookie-<tenantID>/hello-world/config.js?room=vpaas-magic-cookie-<tenantID>hello-world Error(Error){"message":"loadScript error: undefined","stack":"index.android.bundle:538:817\np@index.android.bundle:284:423\nindex.android.bundle:284:1740\np@index.android.bundle:284:423\nn@index.android.bundle:284:898\nindex.android.bundle:284:1047\nf@index.android.bundle:111:155\nindex.android.bundle:111:882\ny@index.android.bundle:117:661\nC@index.android.bundle:117:1025\ncallImmediates@index.android.bundle:117:3100\ncallImmediates@[native code]\nvalue@index.android.bundle:36:3247\nindex.android.bundle:36:1283\nvalue@index.android.bundle:36:2939\nvalue@index.android.bundle:36:1253\nvalue@[native code]\nvalue@[native code]"}
I/JitsiMeetSDK(10937): [features/overlay] The conference will be reloaded after 19 seconds.
D/JitsiMeetSDK(10937): ExternalAPI Sending event: CONFERENCE_TERMINATED with data: { NativeMap: {"url":"https://8x8.vc/vpaas-magic-cookie-<tenantID>/hello-world/vpaas-magic-cookie-<tenantID>hello-world","error":"Error: loadScript error: undefined"} }
E/ThemeUtils(10937): View class com.facebook.react.views.text.ReactTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
I/chatty (10937): uid=10179(com.example.app) identical 1 line
E/ThemeUtils(10937): View class com.facebook.react.views.text.ReactTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
D/JITSI_MEET_PLUGIN(10937): JitsiMeetPluginActivity.onConferenceTerminated: {error=Error: loadScript error: undefined, url=https://8x8.vc/vpaas-magic-cookie-<tenantID>/hello-world/vpaas-magic-cookie-<tenantID>hello-world}
D/JITSI_MEET_PLUGIN(10937): JitsiMeetEventStreamHandler.onConferenceTerminated
I/JitsiMeetSDK(10937): Conference terminated: {error=Error: loadScript error: undefined, event=onConferenceTerminated, url=https://8x8.vc/vpaas-magic-cookie-<tenantID>/hello-world/vpaas-magic-cookie-<tenantID>hello-world}
I/JitsiMeetSDK(10937): [features/base/connection] No connection found while disconnecting.我跟踪了关于如何在我的应用程序中配置Jitsi的官方8x8 JaaS文档:
_joinMeeting(String token, String userName) async {
FeatureFlag featureFlag = FeatureFlag();
featureFlag.welcomePageEnabled = false;
// ...
featureFlag.resolution = FeatureFlagVideoResolution.HD_RESOLUTION;
var options = JitsiMeetingOptions()
..serverURL = "https://8x8.vc"
..room = "vpaas-magic-cookie-<tenantID>/hello-world"
..subject = "Hello World"
..token = token
..userDisplayName = userName
..audioOnly = false
..audioMuted = true
..videoMuted = true
..featureFlag = featureFlag;
await JitsiMeet.joinMeeting(options, roomNameConstraints: Map());
}它在公共meet.jit.si服务器上运行得完美无缺,但与8x8的JaaS服务不兼容。我遗漏了什么?
发布于 2021-03-31 09:51:42
在Jitsi颤振插件中使用8x8的JaaS
TL;DR:将您的8x8会议的完整URL设置为会议室名称。
如果遵循官方8x8 Jaas博士,可能会导致Jitsi无法从8x8服务器加载config.js。
本论坛评论暗示人们可以通过app的官方Jitsi应用程序加入8x8会议,方法是使用完整的8x8会议URL作为会议室名称。
事实上,这不仅适用于官方应用程序,也适用于Jitsi颤振插件。使用下面的配置,您应该能够连接到您的8x8租户的会议室。请确保禁用任何房间名称约束,将空映射传递给joinMeeting**,,否则Jitsi 将拒绝您的房间名称!**
_joinMeeting(String token, String userName) async {
FeatureFlag featureFlag = FeatureFlag();
featureFlag.welcomePageEnabled = false;
// ...
featureFlag.resolution = FeatureFlagVideoResolution.HD_RESOLUTION;
var options = JitsiMeetingOptions()
..serverURL = "https://8x8.vc"
..room = "https://8x8.vc/vpaas-magic-cookie-<tenantID>/<roomName>"
..subject = "Hello World"
..token = token
..userDisplayName = userName
..audioOnly = false
..audioMuted = true
..videoMuted = true
..featureFlag = featureFlag;
await JitsiMeet.joinMeeting(options, roomNameConstraints: Map());
}希望这能帮你节省点时间。
https://stackoverflow.com/questions/66843145
复制相似问题