mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix freezing issue
This commit is contained in:
parent
027f9b2a87
commit
c1b95dc54f
|
@ -62,5 +62,7 @@ extension CameraManager : AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptur
|
|||
delegate?.handleVideoOutputCaptured(sampleBuffer: sampleBuffer)
|
||||
}
|
||||
|
||||
func captureOutput(_ output: AVCaptureOutput, didDrop sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) { }
|
||||
func captureOutput(_ output: AVCaptureOutput, didDrop sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
|
||||
print("[Calls] Frame dropped.")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class WebRTCSession : NSObject, RTCPeerConnectionDelegate {
|
|||
internal lazy var mediaConstraints: RTCMediaConstraints = {
|
||||
let mandatory: [String:String] = [
|
||||
kRTCMediaConstraintsOfferToReceiveAudio : kRTCMediaConstraintsValueTrue,
|
||||
kRTCMediaConstraintsOfferToReceiveVideo : kRTCMediaConstraintsValueTrue
|
||||
kRTCMediaConstraintsOfferToReceiveVideo : kRTCMediaConstraintsValueTrue,
|
||||
]
|
||||
let optional: [String:String] = [:]
|
||||
return RTCMediaConstraints(mandatoryConstraints: mandatory, optionalConstraints: optional)
|
||||
|
@ -58,7 +58,9 @@ public final class WebRTCSession : NSObject, RTCPeerConnectionDelegate {
|
|||
|
||||
// Video
|
||||
public lazy var localVideoSource: RTCVideoSource = {
|
||||
return factory.videoSource()
|
||||
let result = factory.videoSource()
|
||||
result.adaptOutputFormat(toWidth: 360, height: 780, fps: 30)
|
||||
return result
|
||||
}()
|
||||
|
||||
internal lazy var localVideoTrack: RTCVideoTrack = {
|
||||
|
|
Loading…
Reference in a new issue