当前位置:网站首页>Treating as key frame since WebRTC-SpsPpsIdrIsH264Keyframe is disabled 解决
Treating as key frame since WebRTC-SpsPpsIdrIsH264Keyframe is disabled 解决
2022-08-04 05:32:00 【睏哥RTC】
在demo的PeerconnectionClient文件里加上下面加粗的一行:
fieldTrials += VIDEO_SPSPPSIDR_ISH264KEYFRAME_FIELDTRIAL;
private static String getFieldTrials(PeerConnectionParameters peerConnectionParameters) { String fieldTrials = ""; if (peerConnectionParameters.videoFlexfecEnabled) { fieldTrials += VIDEO_FLEXFEC_FIELDTRIAL; Log.d(TAG, "Enable FlexFEC field trial."); } fieldTrials += VIDEO_VP8_INTEL_HW_ENCODER_FIELDTRIAL; if (peerConnectionParameters.disableWebRtcAGCAndHPF) { fieldTrials += DISABLE_WEBRTC_AGC_FIELDTRIAL; Log.d(TAG, "Disable WebRTC AGC field trial."); } fieldTrials += VIDEO_SPSPPSIDR_ISH264KEYFRAME_FIELDTRIAL; return fieldTrials; }
设置到PeerConnectionFactory里
final String fieldTrials = getFieldTrials(peerConnectionParameters);
PeerConnectionFactory.initialize(
PeerConnectionFactory.InitializationOptions.builder(appContext)
.setFieldTrials(fieldTrials)
.setEnableInternalTracer(true)
.createInitializationOptions());
边栏推荐
- Fabric v1.1 环境搭建
- The Unity of ML - agents interpret parameter Settings
- [Development miscellaneous][Debug]debug into kernel
- [Development Miscellaneous][Editor][Code Reading]ctags & vim
- C语言静态变量static的分析
- CAS无锁队列的实现
- Tencent and NetEase have taken action one after another. What is the metaverse that is so popular that it is out of the circle?
- LeetCode_22_Apr_2nd_Week
- MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
- Shell脚本执行的三种方式
猜你喜欢
随机推荐
MNIST Handwritten Digit Recognition - From Perceptrons to Convolutional Neural Networks
第三章 标准单元库(下)
指针运算相关面试题详解【C语言】
Windows10重置MySQL用户密码
Tensorflow/Pytorch安装(Anaconda环境下,无版本冲突,亲测有效)
Deep Learning Theory - Overfitting, Underfitting, Regularization, Optimizers
MNIST Handwritten Digit Recognition - Image Analysis Method for Binary Classification
[Daily Office][Miscellaneous][vscode]tab space
Chapter One Introduction
LeetCode_Nov_2nd_Week
网络通信与Socket编程概述
C语言数组的深度分析
(位操作符)按位与、按位或、按位异或
MNIST手写数字识别 —— 图像分析法实现二分类
指针的运算【C语言】
jdbc:mysql://localhost:3306/student?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8时报错
arm交叉编译
SFTP的用法
MVC自定义配置
2020-03-27