-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The views are freezing then arise some error #5
Comments
What device model and iOS version are you using? Does this error occur --kelly On Thu, Jul 30, 2015 at 6:46 AM, Kos notifications@github.com wrote:
|
So, I have a iPhone5, ios 8.4 |
Yes, rotation seems to cause a problem and lead to crashing. What needs to On Thu, Jul 30, 2015 at 7:59 AM, Kos notifications@github.com wrote:
|
Must I do it within peerConnectionOnRenegotiationNeeded method? |
Last time i looked into the issue it was related to -k On Fri, Jul 31, 2015 at 10:50 AM, Kos notifications@github.com wrote:
|
Hello,
A [localStream removeVideoTrack:localStream.videoTracks[0]] and RTCVideoTrack *localVideoTrack = [self createLocalVideoTrack] are called from different threads and probably the system tries to call removeVideoTrack and createLocalVideoTrack simultaneously. I made a test, I inserted a pause (sth like sleep() ) between removeVideoTrack and createLocalVideoTrack, for convincing that a removeVideoTrack was executed and createLocalVideoTrack will be executed after, the problem is gone. The didChangeVideoSizes is selector that handles an error onVideoError ( when I talked about in the beginning). |
Thats great to hear you solved the problem! Do you want to issue a pull thanks! On Thu, Aug 6, 2015 at 7:18 AM, Kos notifications@github.com wrote:
|
Hi, I'm having the exact problem. For me, this error is occurring only when I add mandatoryConstraints for maxWidth and maxHeight. Without them, everything seems fine. By trial and error method I managed to find out that inserting 0.4 seconds pause anywhere between [localStream removeVideoTrack:localStream.videoTracks[0]]; and [_delegate appClient:self didReceiveLocalVideoTrack:localVideoTrack]; fixes the problem. Anything below 0.4 seconds doesn't work for me. Since pausing for 0.4 seconds is creating a delay I was wondering if there is a more elegant solution for this problem? Thanks! |
Guys look at my pull request. There are improvements regarding the issue |
Yep, works like a charm now. Thanks! |
I'm using @kos9kus 's fix, and generally it works - rotates fine, with one exception - front camera, when orientation is set to 4 (UIDeviceOrientationLandscapeRight). Then I just get a black screen. Any ideas? |
Hello guys! I Maybe fix it. This is my solution : In ARDAppClient class
|
Arising some error,
onVideoError: NSConcreteNotification 0x16fc1a50 {name = AVCaptureSessionRuntimeErrorNotification; object = <AVCaptureSession: 0x180a35a0 [AVCaptureSessionPresetInputPriority]>
<AVCaptureDeviceInput: 0x16dd1ba0 [Front Camera]> -> <AVCaptureVideoDataOutput: 0x180d8a30>; userInfo = {
AVCaptureSessionErrorKey = "Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x16fb5230 {NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x16d0ae60 "The operation couldn\U2019t be completed. (OSStatus error -12780.)", NSLocalizedFailureReason=An unknown error occurred (-12780)}";
}}
Than: WARNING: Renegotiation needed but unimplemented.
Than the App is freezing
What should I do if delegate calls a peerConnectionOnRenegotiationNeeded method?
I disabled an execution of device rotation.
Any ideas ?
Thanks!
The text was updated successfully, but these errors were encountered: