You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
duration >= maxCallDuration
This judgment will be triggered many times. You know, for example, if the duration is set to 10 seconds, then after 10 seconds, every second after that will meet your condition.
You should set duration == maxCallDuration like this document
call duration is not working , please help me with this,
ZegoUIKitPrebuiltCallInvitationService().init(
appID: zegoAppId,
appSign: zegoAppSignIn,
userID: userPhone.toString(),
userName: userName.toString(),
plugins: [ZegoUIKitSignalingPlugin()],
requireConfig: (ZegoCallInvitationData data) {
final config = ZegoUIKitPrebuiltCallConfig.oneOnOneVoiceCall();
config.topMenuBarConfig.isVisible = true;
config.durationConfig.isVisible = true;
config.durationConfig.onDurationUpdate = (Duration duration) {
callDuration = duration;
if (duration >= maxCallDuration) {
// Ensure the context is available
if (navigatorKey.currentState != null) {
ZegoUIKitPrebuiltCallController().hangUp(navigatorKey.currentState!.context);
} else {
debugPrint("Navigator key context is null");
}
}
};
The text was updated successfully, but these errors were encountered: