呼出/通话中按钮、计时器、底色、60s 未接与进出场动效对齐视觉规范。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
24 lines
916 B
Dart
24 lines
916 B
Dart
import '../brand/app_tokens.dart';
|
|
import '../config/app_endpoints.dart';
|
|
|
|
/// Android 一对一语音通话配置门。入口只在配置齐全且本卡已落地时打开。
|
|
class LiveKitCallConfig {
|
|
LiveKitCallConfig._();
|
|
|
|
/// 公司账号服务换票路径,对应 account-service `POST /api/rtc_token`。
|
|
static const String rtcTokenPath = '/api/rtc_token';
|
|
|
|
/// 未接超时,唯一业务来源;界面层经 `Styles.callInviteTimeout` 对齐同一 Token。
|
|
static const Duration inviteTimeout = AppDuration.callInviteTimeout;
|
|
|
|
/// 薄适配与构建验证通过后为 true;配置不齐时 [enabled] 仍为 false。
|
|
static const bool shipped = true;
|
|
|
|
static bool get endpointsReady =>
|
|
AppEndpoints.livekitUrl.startsWith('ws://') &&
|
|
AppEndpoints.authApiBase.startsWith('http') &&
|
|
rtcTokenPath == '/api/rtc_token';
|
|
|
|
static bool get enabled => shipped && endpointsReady;
|
|
}
|