modify
This commit is contained in:
parent
faa00c6bce
commit
203377f6ca
@ -408,9 +408,6 @@ class LockMonitoringLogic extends BaseGetXController {
|
||||
_getUDPStatusRefreshUIAction();
|
||||
|
||||
initRecorder();
|
||||
|
||||
// 页面加载时自动发起接听请求
|
||||
initiateUdpAnswerAction();
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@ -47,7 +47,7 @@ class LockMonitoringState {
|
||||
// 定时器如果发送了接听的命令 而没收到回复就每秒重复发送10次
|
||||
late Timer answerTimer = Timer(const Duration(seconds: 1), () {}); //接听命令定时器
|
||||
RxInt answerSeconds = 0.obs;
|
||||
RxBool isClickAnswer = true.obs; //是否点击了接听按钮
|
||||
RxBool isClickAnswer = false.obs; //是否点击了接听按钮
|
||||
|
||||
late Timer hangUpTimer = Timer(const Duration(seconds: 1), () {}); //挂断命令定时器
|
||||
RxInt hangUpSeconds = 0.obs;
|
||||
|
||||
@ -111,9 +111,6 @@ class TalkViewNativeDecodeState {
|
||||
final List<Map<String, dynamic>> h264FrameBuffer = <Map<String, dynamic>>[]; // H264帧缓冲区,存储帧数据和类型
|
||||
int maxFrameBufferSize = 3; // 最大缓冲区大小,减小以降低延迟
|
||||
final int targetFps = 25; // 目标解码帧率,只是为了快速填充native的缓冲区
|
||||
final int adaptiveBufferSizeMin = 2; // 自适应缓冲区最小大小
|
||||
final int adaptiveBufferSizeMax = 6; // 自适应缓冲区最大大小
|
||||
final int networkQualityCheckIntervalMs = 2000; // 网络质量检查间隔(毫秒)
|
||||
final int frameProcessIntervalMs = 10; // 帧处理间隔(毫秒),提高响应速度
|
||||
Timer? frameProcessTimer; // 帧处理定时器
|
||||
bool isProcessingFrame = false; // 是否正在处理帧
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user