fix:调整缓冲区大小
This commit is contained in:
parent
2f03a98cc4
commit
34da68e16c
@ -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,
|
||||
|
||||
@ -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; // 是否正在处理帧
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user