fix:调整为原有的864*480对讲视频
This commit is contained in:
parent
07d20dfbf2
commit
e1bf2f2fdc
@ -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为空');
|
||||
|
||||
@ -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; // 是否正在处理帧
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user