当前位置:网站首页>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());
边栏推荐
- 基于asp.net的法律援助平台的设计与实现(附项目链接)
- SFTP的用法
- LeetCode_Nov_4th_Week
- MNIST Handwritten Digit Recognition - Lenet-5's First Commercial Grade Convolutional Neural Network
- Question 1000: Input two integers a and b, calculate the sum of a+b, this question is multiple sets of test data
- tmux概念和使用
- The usefulness of bind() system call
- Rules.make - suitable for viewing in edit mode
- 2020-03-27
- 集合---ArrayList的底层
猜你喜欢
随机推荐
Vmmem 进程(WSL2)消耗内存巨大
[日常办公][杂项][vscode]tab space
target has libraries with conflicting names: libcrypto.a and libssl.a.
实现高并发服务器(二)
Install Minikube Cluster in AWS-EC2
枚举和联合(自定义类型)-C语言
C语言对文件的操作(完整版)
Pipe redirection
CSDN spree -- college round table spree
Thunderbolt turns off automatic updates
指针的运算【C语言】
[开发杂项][调试]debug into kernel
文件权限管理 ugo
Question 1000: Input two integers a and b, calculate the sum of a+b, this question is multiple sets of test data
[开发杂项][编辑器][代码阅读]ctags&vim
基于asp.net的法律援助平台的设计与实现(附项目链接)
LeetCode_22_Apr_4th_Week
tmux概念和使用
Shell脚本执行的三种方式
结构体内存对齐-C语言