feat(mobile-next): 迁移 Android 一对一语音通话薄适配与入口
复用官方 OpenIMLive 信令与房间,换票改走账号服务 /api/rtc_token;入口仅音频,占线/超时/重复回调与销毁释放由公司层防护。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
2a817e77d8
commit
3832e080c4
@@ -22,6 +22,7 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
|
||||
import 'package:wechat_camera_picker/wechat_camera_picker.dart';
|
||||
import 'package:openim_live/openim_live.dart';
|
||||
|
||||
import '../../company/feature_flags.dart';
|
||||
import '../../core/controller/app_controller.dart';
|
||||
import '../../core/controller/im_controller.dart';
|
||||
import '../../core/im_callback.dart';
|
||||
@@ -1622,18 +1623,17 @@ class ChatLogic extends SuperController {
|
||||
}
|
||||
|
||||
void call() {
|
||||
if (!FeatureFlags.livekitCall || !isSingleChat) return;
|
||||
if (rtcIsBusy) {
|
||||
IMViews.showToast(StrRes.callingBusy);
|
||||
return;
|
||||
}
|
||||
|
||||
IMViews.openIMCallSheet(nickname.value, (index) {
|
||||
imLogic.call(
|
||||
callObj: CallObj.single,
|
||||
callType: index == 0 ? CallType.audio : CallType.video,
|
||||
inviteeUserIDList: [if (isSingleChat) userID!],
|
||||
);
|
||||
});
|
||||
imLogic.call(
|
||||
callObj: CallObj.single,
|
||||
callType: CallType.audio,
|
||||
inviteeUserIDList: [userID!],
|
||||
);
|
||||
}
|
||||
|
||||
void onScrollToTop() {
|
||||
|
||||
Reference in New Issue
Block a user