当前位置:网站首页>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());
边栏推荐
- LeetCode_Nov_5th_Week
- LeetCode_Dec_3rd_Week
- [日常办公][ssh]cheatsheet
- makefile基础学习
- 在AWS-EC2中安装Minikube集群
- Install Minikube Cluster in AWS-EC2
- Copy Siege Lions "sticky" to AI couplets
- Design and implementation of legal aid platform based on asp.net (with project link)
- LeetCode_Dec_3rd_Week
- AWS使用EC2降低DeepRacer的训练成本:DeepRacer-for-cloud的实践操作
猜你喜欢
LeetCode_Dec_1st_Week
Copy Siege Lions "sticky" to AI couplets
Tencent and NetEase have taken action one after another. What is the metaverse that is so popular that it is out of the circle?
Question 1000: Input two integers a and b, calculate the sum of a+b, this question is multiple sets of test data
【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#
文件权限管理 ugo
LeetCode_Nov_3rd_Week
"A minute" Copy siege lion log 】 【 run MindSpore LeNet model
IDEA中创建web项目实现步骤
Golang环境变量设置(二)--GOMODULE&GOPROXY
随机推荐
Deep Learning Theory - Initialization, Parameter Adjustment
Tensorflow/Pytorch安装(Anaconda环境下,无版本冲突,亲测有效)
亚马逊云科技 Build On 2022 - AIot 第二季物联网专场实验心得
实现高并发服务器(二)
Brief description of database and common operation guide
库函数的模拟实现-C语言
Introduction to Convolutional Neural Networks
CSDN大礼包--高校圆桌派大礼包
C语言对文件的操作(完整版)
[Development miscellaneous][Debug]debug into kernel
DRA821 环境搭建
C语言无符号整型运算
[Deep Learning Diary] Day 1: Hello world, Hello CNN MNIST
MNIST Handwritten Digit Recognition - Image Analysis Method for Binary Classification
CSDN spree -- college round table spree
LeetCode_Nov_2nd_Week
Design and implementation of legal aid platform based on asp.net (with project link)
arm交叉编译
深度学习理论——过拟合、欠拟合、正则化、优化器
LeetCode_Nov_5th_Week