fix:调整缓冲区大小

This commit is contained in:
liyi 2025-05-08 10:14:34 +08:00
parent ce6c02b736
commit 1217ea7d3e
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
// final timestamp = DateTime.now().millisecondsSinceEpoch;
// final timestamp64 = timestamp is int ? timestamp : timestamp.toInt();
VideoDecodePlugin.sendFrame(
await VideoDecodePlugin.sendFrame(
frameData: frameData,
frameType: frameType == TalkDataH264Frame_FrameTypeE.I ? 0 : 1,
frameSeq: frameSeq,

View File

@ -109,7 +109,7 @@ class TalkViewNativeDecodeState {
// H264帧缓冲区相关
final List<Map<String, dynamic>> h264FrameBuffer = <Map<String, dynamic>>[]; // H264帧缓冲区
final int maxFrameBufferSize = 17; //
final int maxFrameBufferSize = 7; //
final int targetFps = 30; // ,native的缓冲区
Timer? frameProcessTimer; //
bool isProcessingFrame = false; //