From f8847ca483330adfe5c7c50e08530a1c217a502e Mon Sep 17 00:00:00 2001 From: liyi Date: Wed, 18 Jun 2025 15:14:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E5=A4=A7=E5=B8=A7=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8F=91=E9=80=81=E9=80=9F=E7=8E=87=E5=92=8C=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E7=BC=93=E5=86=B2=E5=8C=BA=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../starChart/views/native/talk_view_native_decode_state.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/talk/starChart/views/native/talk_view_native_decode_state.dart b/lib/talk/starChart/views/native/talk_view_native_decode_state.dart index c9be5f57..7fa57cf2 100644 --- a/lib/talk/starChart/views/native/talk_view_native_decode_state.dart +++ b/lib/talk/starChart/views/native/talk_view_native_decode_state.dart @@ -110,8 +110,8 @@ class TalkViewNativeDecodeState { // H264帧缓冲区相关 final List> h264FrameBuffer = >[]; // H264帧缓冲区,存储帧数据和类型 - final int maxFrameBufferSize = 15; // 最大缓冲区大小 - final int targetFps = 30; // 目标解码帧率,只是为了快速填充native的缓冲区 + final int maxFrameBufferSize = 150; // 最大缓冲区大小 + final int targetFps = 60; // 目标解码帧率,只是为了快速填充native的缓冲区 Timer? frameProcessTimer; // 帧处理定时器 bool isProcessingFrame = false; // 是否正在处理帧 int lastProcessedTimestamp = 0; // 上次处理帧的时间戳