Young87

SmartCat's Blog

So happy to code my life!

游戏开发交流QQ群号60398951

当前位置:首页 >跨站数据测试

WebRTC如何通过参数控制编码模式切换(DIsabled模式)

bool WebRtcVideoChannel::AddSendStream(const StreamParams& sp) 

调用AddSendStream()方法时,首先检验StreamParams参数是否有效,然后判断SSRC是否可用。创建WebRtcVideoSendStream实例的时候,将参数传递给WebRtcVideoSendStream对象。参数sp经过CreateRtpParametersWithEncodings处理后,赋值给rtp_parameters_。

webrtc::DegradationPreference
WebRtcVideoChannel::WebRtcVideoSendStream::GetDegradationPreference() const {
  // Do not adapt resolution for screen content as this will likely
  // result in blurry and unreadable text.
  // |this| acts like a VideoSource to make sure SinkWants are handled on the
  // correct thread.
  webrtc::DegradationPreference degradation_preference;
  if (rtp_parameters_.degradation_preference !=
      webrtc::DegradationPreference::BALANCED) {
    // If the degradationPreference is different from the default value, assume
    // it is what we want, regardless of trials or other internal settings.
    degradation_preference = 
Data-Mining CSDN认证博客专家 CSDN博客专家
敲代码,搞开发。
本人深耕音视频技术,走全栈路线,前后端通吃,兼顾各端与流媒体服务器。
博客主页地址:https://liuzhen.blog.csdn.net/
欢迎沟通交流学习!

除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: Navicat导出mysql表结构方便开发过程查看详细字段

下一篇: C语言利用结构体查看电话号码

精华推荐