fix:调整为原有的864*480对讲视频

This commit is contained in:
liyi 2025-05-06 14:00:38 +08:00
parent 07d20dfbf2
commit e1bf2f2fdc
2 changed files with 2 additions and 21 deletions

View File

@ -209,7 +209,7 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
final TalkDataH264Frame_FrameTypeE frameType = frameMap['frameType'];
final int frameSeq = frameMap['frameSeq'];
final int frameSeqI = frameMap['frameSeqI'];
int pts = frameMap['pts'];
int pts = frameMap['pts'];
// int pts = DateTime.now().millisecondsSinceEpoch;
// if (frameType == TalkDataH264Frame_FrameTypeE.P) {
@ -294,25 +294,6 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
talkDataH264Frame.frameSeq,
talkDataH264Frame.frameSeqI,
);
// if (talkDataH264Frame.frameType ==
// TalkDataH264Frame_FrameTypeE.I) {
// _handleIFrameWithSpsPpsAndIdr(
// talkData.content,
// talkData.durationMs,
// talkDataH264Frame.frameSeq,
// talkDataH264Frame.frameSeqI,
// );
// return;
// } else if (talkDataH264Frame.frameType ==
// TalkDataH264Frame_FrameTypeE.P) {
// _handlePFrame(
// talkData.content,
// talkData.durationMs,
// talkDataH264Frame.frameSeq,
// talkDataH264Frame.frameSeqI,
// );
// return;
// }
}
} else {
AppLog.log('无法处理H264帧textureId为空');

View File

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