当前位置:网站首页>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());
边栏推荐
- jdbc:mysql://localhost:3306/student?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8时报错
- LeetCode_Nov_2nd_Week
- [Development Miscellaneous][Editor][Code Reading]ctags & vim
- 线性表之动态数组(ArrayList)的自实现
- Socket编程详解
- MNIST手写数字识别 —— 图像分析法实现二分类
- LeetCode_Dec_3rd_Week
- Deep Learning Theory - Initialization, Parameter Adjustment
- CAS无锁队列的实现
- How to get started with MOOSE platform - an example of how to run the official tutorial
猜你喜欢
随机推荐
(位操作符)按位与、按位或、按位异或
亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得
关于DG(域泛化)领域的PCL方法的代码实例
Thunderbolt turns off automatic updates
理想的生活
JDBC第一学之进行数据库连接时出现The server time zone.....解决办法
const int * a 与 int * const a 的定义与区别
集合--LinkedList
Detailed steps to install MySQL
LeetCode_Nov_4th_Week
基于asp.net的法律援助平台的设计与实现(附项目链接)
Introduction to Convolutional Neural Networks
[Development Miscellaneous][Editor][Code Reading]ctags & vim
代码庆端午--粽你心意
How to get started with MOOSE platform - an example of how to run the official tutorial
MNIST Handwritten Digit Recognition - From Perceptrons to Convolutional Neural Networks
MNIST handwritten digit recognition, sorted by from two to ten
彻底删除MySQL教程
[Development miscellaneous][Debug]debug into kernel
LeetCode_22_Apr_2nd_Week