[英]iOS WebRTC mesh video conference call memory increasing issue
問題:我正在處理 4 人的 iOS WebRTC 網狀電話會議,在運行 5 或 6 分鍾的視頻電話會議后,內存大小增加,整個應用程序掛起。
場景:只有音頻或只有視頻(無音頻)的 4 人電話會議工作正常。 但面臨 4 人視頻電話會議時內存大小增加的問題。
我們在做什么:
探查器屏幕截圖:
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)
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.