240 发简信
IP属地:广东
  • WebRTC-PeerConnection.RTCConfiguration解析

    WebRTC通信最主要的配置 IceTransportsType:收集的策略类型,目前可供选择的有ALL(全部收集),NOHOST(不收集host类的策略信息),RELAY(...

  • iOS webRTC SDP介绍及设置

    今天说说webRTC中的Session Description Protocol (SDP,会话描述协议)。SDP是一系列信息的描述,包括 IP address(这里指外网I...

  • @王沐凡 谢谢,都试过,没什么效果。我做的是纯音频的,上传下载带宽还是在3kb左右,[RTCAudioSession sharedInstance] .sampleRate 还是48000。弱网情况下,网速往往在1k左右,无法良好通信。

    iOS webRTC SDP介绍及设置

    今天说说webRTC中的Session Description Protocol (SDP,会话描述协议)。SDP是一系列信息的描述,包括 IP address(这里指外网I...

  • @王沐凡
    感谢大佬快速回复。
    您说的应该就是下面这两个方法的block回调吧。但还是之前提的问题,RTCSessionDescription.sdp的修饰是readonly的,没办法修改,难道是重新生成一个RTCSessionDescription对象?

    /** Generate an SDP offer. */
    - (void)offerForConstraints:(RTCMediaConstraints *)constraints
    completionHandler:(nullable void (^)(RTCSessionDescription *_Nullable sdp,
    NSError *_Nullable error))completionHandler;

    /** Generate an SDP answer. */
    - (void)answerForConstraints:(RTCMediaConstraints *)constraints
    completionHandler:(nullable void (^)(RTCSessionDescription *_Nullable sdp,
    NSError *_Nullable error))completionHandler;

    然后我看头文件发现了另一个API,
    /** Limits the bandwidth allocated for all RTP streams sent by this
    * PeerConnection. Nil parameters will be unchanged. Setting
    * |currentBitrateBps| will force the available bitrate estimate to the given
    * value. Returns YES if the parameters were successfully updated.
    */
    - (BOOL)setBweMinBitrateBps:(nullable NSNumber *)minBitrateBps
    currentBitrateBps:(nullable NSNumber *)currentBitrateBps
    maxBitrateBps:(nullable NSNumber *)maxBitrateBps;

    正准备调用这个API是否能用。

    iOS webRTC SDP介绍及设置

    今天说说webRTC中的Session Description Protocol (SDP,会话描述协议)。SDP是一系列信息的描述,包括 IP address(这里指外网I...

  • RTCSessionDescription 里的 @property(nonatomic, readonly) NSString *sdp; 是readonly,所以怎么修改?

    iOS webRTC SDP介绍及设置

    今天说说webRTC中的Session Description Protocol (SDP,会话描述协议)。SDP是一系列信息的描述,包括 IP address(这里指外网I...

  • 大佬,修改这个的入口在哪里啊。我看了下头文件没有,再去源码里面搜了一下,也没有。所以说,修改这个SDP的接口API在哪里?

    iOS webRTC SDP介绍及设置

    今天说说webRTC中的Session Description Protocol (SDP,会话描述协议)。SDP是一系列信息的描述,包括 IP address(这里指外网I...

  • Bugly 自动上传脚本在xcode10上报 zip error: Nothing to do! 错误的解决方法

    先说解决方法: 在脚本的196行,也就是“ for dsymFile in $(find "$DSYM_FOLDER" -name '*.dSYM'); do ” 这行代码之...

  • 重新 pod update 一下就好了

    Xcode多种Build Configuration配置使用

    测试环境 OS X Yosemite 10.10.5 Xcode 7.0.1 Build Configuration? Xcode默认会有2个编译模式,一个是Debug,一个...