SDKsFlutterEnterprise
Start a one-to-one call
Use the Flutter SDK to start a one-to-one audio or video call.
signalingInvite() starts a one-to-one call. The SDK manages signaling state; the application must still use the returned credentials to connect its real-time audio/video media engine.
final info = SignalingInfo(
userID: currentUserID,
invitation: InvitationInfo(
inviterUserID: currentUserID,
inviteeUserIDList: [peerUserID],
groupID: '',
roomID: roomID,
timeout: 30,
mediaType: 'video',
sessionType: ConversationType.single,
platformID: Platform.isIOS ? IMPlatform.ios : IMPlatform.android,
),
offlinePushInfo: offlinePushInfo,
);
final credentials = await OpenIM.iMManager.signalingManager
.signalingInvite(info: info);For a one-to-one call, pass an empty string as groupID and include only the peer in inviteeUserIDList. The Future returns SignalingCertificate. Connect the media room only after obtaining a valid token and roomID. Success does not mean that the invitee has answered.
Was this page helpful?