gpt4 book ai didi

flutter - 画中画模式如何进入jitsi session 室?

转载 作者:行者123 更新时间:2023-12-05 07:01:19 36 4
gpt4 key购买 nike

joinClassWithToken({
@required final String room, //Room ID
@required final String serevrUrl, //Server Id
@required final String subject,
@required final String token, //Subject of Class
@required final String type,
final String displayName, //Display Name of user
final String userEmail, //Email of user
final bool audioOnly, //Audio Only Flag
final bool audioMuted, //Audio Mute Flag
final bool videoMuted, //Video Mute flag
}) async {
try {
Map<FeatureFlagEnum, bool> featureFlags = {
FeatureFlagEnum.INVITE_ENABLED: false,
FeatureFlagEnum.IOS_RECORDING_ENABLED: false,
FeatureFlagEnum.LIVE_STREAMING_ENABLED: false,
FeatureFlagEnum.RECORDING_ENABLED: false,
FeatureFlagEnum.MEETING_PASSWORD_ENABLED: false,
FeatureFlagEnum.ADD_PEOPLE_ENABLED: false,
FeatureFlagEnum.CALL_INTEGRATION_ENABLED: true,
FeatureFlagEnum.PIP_ENABLED: true
};
var options = JitsiMeetingOptions()
..room = room // Required, spaces will be trimmed
..serverURL = serevrUrl
..subject = subject
..userDisplayName = displayName
..token = token
..audioOnly = audioOnly
..audioMuted = audioMuted
..videoMuted = videoMuted
..featureFlags.addAll(featureFlags);
print(options.toString());
JitsiMeet.addListener(JitsiMeetingListener(
onConferenceJoined: ({message}) => print('Jitsi Call Joined : $message'),
onError: _errorMessage,
));
await JitsiMeet.joinMeeting(options);
} catch (error) {
return Exception(error);
}
}

我正在开发一个 flutter 应用程序,我需要 jitsi meet screen 默认在 Picturee in Picture Mode 中启动。我目前正在使用 jitsi_meet使用 jitsi meet 的 pub.dev 包。有什么办法吗?

最佳答案

关于如何在 JitsiMeetingOptions 上设置 featureFlag 似乎存在问题.我建议初始化一个 FeatureFlag 对象来修改配置,而不是创建 Map featureFlags。

 FeatureFlag featureFlag = FeatureFlag();

然后更新featureFlag.pipEnabled

featureFlag.pipEnabled = true;

并设置featureFlag

var options = JitsiMeetingOptions()
..featureFlag = featureFlag;

关于flutter - 画中画模式如何进入jitsi session 室?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63904545/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com