twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
460 stars 178 forks source link

Capture Failed. #482

Closed rahveekotadiya closed 4 years ago

rahveekotadiya commented 4 years ago

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

paynerc commented 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

rahveekotadiya commented 4 years ago

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

rahveekotadiya commented 4 years ago

@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.

twillio_Logs.txt

paynerc commented 4 years ago

@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

paynerc commented 4 years ago

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

paynerc commented 4 years ago

@rahveekotadiya,

It's been a while since I heard from you. Are you still experiencing this issue?

Ryan

rahveekotadiya commented 4 years ago

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

sojitrajayumedex commented 4 years ago

@rahveekotadiya Can you please mention how the error is resolved? I am also facing the same issue.

anand-y commented 4 years ago

@rahveekotadiya @paynerc please tell how did you resolve this issue