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屏幕。目前,我正在使用jitsi_meet pub.dev包来使用Jitsi Meet。有没有办法实现这个功能?