Closed rahveekotadiya closed 4 years ago
@rahveekotadiya ,
I'm sorry that you are experiencing this issue. Would you be able to provide a sample of code that you are using to start the camera capture? Has it ever worked for you or does this always happen? It is only failing on the iPhone Xr or does it happen on other devices as well?
Thank you,
Ryan
Hello @paynerc
Recently i updated framework with cocoapods with latest twillio sdk. I used manual framwork before this.
i find the change between old code and new code
like this is old Method for connect room:
self.room = [TwilioVideo connectWithOptions:connectOptions delegate:self];
and below is new method:
self.room = [TwilioVideoSDK connectWithOptions:connectOptions delegate:self];
Is there any kind of issue with this because of now i got participant audio but not able to see his video my participant able to see and listen audio both but my side it's not working. now its not working in any devices.
Below code is for start camera capture
(void)startPreview {
AVCaptureDevice frontCamera = [TVICameraSource captureDeviceForPosition:AVCaptureDevicePositionFront]; AVCaptureDevice backCamera = [TVICameraSource captureDeviceForPosition:AVCaptureDevicePositionBack];
if (frontCamera != nil || backCamera != nil) { self.camera = [[TVICameraSource alloc] initWithDelegate:self]; self.localVideoTrack = [TVILocalVideoTrack trackWithSource:self.camera enabled:YES name:@"Camera"]; // Add renderer to video track for local preview [self.localVideoTrack addRenderer:self.previewView]; //Toast(@"Video track created");
if (frontCamera != nil && backCamera != nil) {
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(flipCamera)];
[self.previewView addGestureRecognizer:tap];
}
[self.camera startCaptureWithDevice:frontCamera != nil ? frontCamera : backCamera
completion:^(AVCaptureDevice *device, TVIVideoFormat *format, NSError *error) {
if (error != nil) {
NSString *errorStr = [NSString stringWithFormat:@"Start capture failed with error.\ncode = %lu error = %@", error.code, error.localizedDescription];
Toast(errorStr);
}
else
{
self.previewView.mirror = (device.position == AVCaptureDevicePositionFront);
}
}];
} else { Toast(@"No front or back capture device found!") } }
@bmctigue @paynerc @kwhinnery @andrewryno @Gipetto
In this comment i attached complete log text file from starting
right now i m not able to see video of participent but i am able to listent audio
please check and guide me proper solution.
@rahveekotadiya,
In your application are you listening for the didSubscribeToVideoTrack:...
RemoteParticipantDelegate
call back method and then add the published track to a renderer, such as TVIVideoView
?
As far as not being able to capture, by chance are you attempting to start the camera capture when your application is in the background, via accepting a CallKit notification or the like? I saw an error message in your log file that seemed concerning:
2020-04-29 18:02:44.870688+0530 DOCTERZ[5219:1036955] [BackgroundTask] Background Task 9 ("Called by TwilioVideo, from -[TVICameraCapturePipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
Ryan
With regards to the BackgroundTask
message: This is a new message being output by iOS 13.4.1, which at this time is benign. It is present any time the camera capture starts, not just when a room is joined in the background via CallKit notification. We are investigating our usage of Background Tasks in iOS 13 and will be addressing that message in a future release.
With that said, is there any further info on the questions I asked the other day, @rahveekotadiya?
Ryan
@rahveekotadiya,
It's been a while since I heard from you. Are you still experiencing this issue?
Ryan
Error has been solved now thanks for your help.
On Fri, 15 May 2020 at 7:19 PM, Ryan C. Payne notifications@github.com wrote:
@rahveekotadiya https://github.com/rahveekotadiya,
It's been a while since I heard from you. Are you still experiencing this issue?
Ryan
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/twilio/video-quickstart-ios/issues/482#issuecomment-629246481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMR4SY2OHHDFMISYVFICWLRRVB63ANCNFSM4MQW4OSA .
-- Thanks & Regards, Ravi Kotadiya. 📱 +919726868172
@rahveekotadiya Can you please mention how the error is resolved? I am also facing the same issue.
@rahveekotadiya @paynerc please tell how did you resolve this issue
Capture failed with error code = 18446744073709539816 error = The operation could not be completed.
Above message Log output when the issue occurs
Versions 3.2.4 Video iOS SDK via CocoaPods
Language Objective - C
Xcode - 11.4.1 iOS Version - 13.4
iOS Device - iPhone Xr![WhatsApp Image 2020-04-24 at 6 27 51 PM](https://user-images.githubusercontent.com/26811979/80279240-d2df4080-8719-11ea-8b5c-fbd54b876109.jpeg)