如何解决错误:不再需要配置!在吉西见扑
config.js文件已经被加载,第二次再次加载并给出错误,该错误触发onConferenceTerminated事件并结束会议。加入会议的以下代码:-
try {
var stopwatch = Stopwatch();
// Enable or disable any feature flag here
// If feature flag are not provided,default values will be used
// Full list of feature flags (and defaults) available in the README
Map<FeatureFlagEnum,bool> featureFlags =
{
FeatureFlagEnum.WELCOME_PAGE_ENABLED : false,FeatureFlagEnum.ADD_PEOPLE_ENABLED : true,FeatureFlagEnum.CALENDAR_ENABLED :false,FeatureFlagEnum.INVITE_ENABLED : false,FeatureFlagEnum.MEETING_PASSWORD_ENABLED: false,FeatureFlagEnum.TOOLBox_ALWAYS_VISIBLE : false,FeatureFlagEnum.PIP_ENABLED : true,};
// Here is an example,disabling features for each platform
if (Platform.isAndroid)
{
// disable ConnectionService usage on Android to avoid issues (see README)
featureFlags[FeatureFlagEnum.CALL_INTEGRATION_ENABLED] = false;
}
else if (Platform.isIOS)
{
// disable PIP on iOS as it looks weird
featureFlags[FeatureFlagEnum.PIP_ENABLED] = false;
}
// Define meetings options here
var options = JitsiMeetingOptions()
..room = widget.room
..subject = subjectText
..userdisplayName = nameText
..iosAppBarRGBAColor = "#0080FF80"
..audioOnly = false
..audioMuted = false
..videoMuted = false
..featureFlags.addAll(featureFlags);
debugPrint("JitsiMeetingOptions: $options");
await JitsiMeet.joinMeeting(options,listener: JitsiMeetingListener(onConferenceWillJoin: ({message}) {
debugPrint("${options.room} will join with message: $message");
},onConferenceJoined: ({message}) {
stopwatch.start();
debugPrint("${options.room} joined with message: $message");
},onConferenceTerminated: ({message})async{
stopwatch.stop();
debugPrint("${options.room} terminated with message: $message,time = ${stopwatch.elapsed.abs().inSeconds}");
}),// by default,plugin default constraints are used
//roomNameConstraints: new Map(),// to disable all constraints
//roomNameConstraints: customContraints,// to use your own constraint(s)
);
} catch (error) {
debugPrint("error: $error");
}
}
错误是“ ExternalAPI发送事件:CONFERENCE_TERMINATED,数据:{NativeMap:{“ error”:“错误:不再需要配置!”,“ url”:“ https://meet.jit.si/”} }”。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。