【问题标题】:iOS WebRTC mesh video conference call memory increasing issueiOS WebRTC网状视频电话会议内存增加问题
【发布时间】:2021-06-21 13:15:35
【问题描述】:

问题: 我正在处理 4 人的 iOS WebRTC 网格电话会议,在运行 5 或 6 分钟的视频电话会议后,内存大小正在增加,整个应用程序挂起。

场景: 仅音频或仅视频(无音频)的 4 人电话会议工作正常。 但面临 4 人进行视频电话会议时内存大小增加的问题。

我们在做什么:

  1. 我们正在使用非常低的比特率和帧以及默认视频编解码器。

分析器屏幕截图:

4 人使用以下配置: 最小比特率:10000 最大比特率:40000 当前比特率:20000

我们通过以下方式使用设备的最低分辨率:

 private func startCapturer(frontCamera:AVCaptureDevice, capturer:RTCCameraVideoCapturer) {
        let fps = 15
        let options = RTCCameraVideoCapturer.supportedFormats(for: frontCamera)
            var supportable = (options.sorted { (f1, f2) -> Bool in
                let width1 = CMVideoFormatDescriptionGetDimensions(f1.formatDescription).width
                let width2 = CMVideoFormatDescriptionGetDimensions(f2.formatDescription).width
                return width1 < width2
            }).first! 
        capturer.startCapture(with: frontCamera,
                              format: supportable,
                              fps: fps)

}

【问题讨论】:

    标签: ios webrtc conference mesh-network webrtc-ios


    【解决方案1】:

    请参考这些链接以获得更好的理解:

    Users in WebRTC call

    绩效评估请参考文档:

    Performance evaluation for WebRTC

    【讨论】:

    猜你喜欢
    • 2022-01-24
    • 2016-05-15
    • 2023-03-12
    • 1970-01-01
    • 2016-02-09
    • 1970-01-01
    • 2014-05-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多