2025-04-18 10:33:51 +08:00
|
|
|
import 'package:star_lock/talk/starChart/proto/talk_expect.pb.dart';
|
|
|
|
|
|
2024-12-30 17:26:30 +08:00
|
|
|
class TalkConstant {
|
|
|
|
|
// TalkPing 未收到回复超时时间(s)
|
2025-02-18 17:51:08 +08:00
|
|
|
static const int talkePingOverTime = 10;
|
|
|
|
|
static const int talkeDataOverTime = 10;
|
2025-04-18 10:33:51 +08:00
|
|
|
|
2024-12-30 17:26:30 +08:00
|
|
|
// 收到TalkRequest 未处理超时时间(s)
|
2025-03-21 16:19:50 +08:00
|
|
|
static const int talkeRequestOverTime = 30;
|
2025-04-18 10:33:51 +08:00
|
|
|
|
|
|
|
|
static TalkExpectReq ImageExpect = TalkExpectReq(
|
|
|
|
|
videoType: [VideoTypeE.IMAGE],
|
|
|
|
|
audioType: [AudioTypeE.G711],
|
|
|
|
|
);
|
|
|
|
|
static TalkExpectReq H264Expect = TalkExpectReq(
|
2025-05-06 11:42:16 +08:00
|
|
|
videoType: [VideoTypeE.H264],
|
2025-04-30 17:55:57 +08:00
|
|
|
audioType: [AudioTypeE.G711],
|
|
|
|
|
);
|
|
|
|
|
static TalkExpectReq H264_720P_Expect = TalkExpectReq(
|
|
|
|
|
videoType: [VideoTypeE.H264_720P],
|
2025-04-30 17:55:57 +08:00
|
|
|
audioType: [AudioTypeE.G711],
|
|
|
|
|
);
|
2024-12-30 17:26:30 +08:00
|
|
|
}
|