Skip to content
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

Interruption problem in IOS devices #62

Open
AliShehab93 opened this issue Jun 6, 2022 · 8 comments
Open

Interruption problem in IOS devices #62

AliShehab93 opened this issue Jun 6, 2022 · 8 comments

Comments

@AliShehab93
Copy link

Hi Ryanheise,
I am facing a problem in an audio session listening for interruptions in ios. In android, streaming is working properly, while in ios it has a delay of 1sec 2sec to reach the pause case. And when resume the record after an interruption is ended, it will replace the paused recording while this issue is working perfectly in android. Also, sometimes, before pause interruption in ios, let us say I record for about 8 sec then a call received, here record is paused and when finishing interruption then listen to the saved record, it will be for about 3 sec recorded not even 7 sec since always it makes a delay as 1 sec 2 sec.
Have you figured out these issues before?

@ryanheise
Copy link
Owner

Are you referring to a phone call interruption or some other interruption? Do you get the same type of delay for all types of interruption?

@AliShehab93
Copy link
Author

AliShehab93 commented Jun 6, 2022

Yes I tried the phone call interruption, I didn’t try other interruptions since I don't need others right now.

@ryanheise
Copy link
Owner

I don't see anything in the code that could cause a delay, so maybe this is just the normal behaviour of iOS (you could confirm by editing the native code and inserting a log when the interruption is received natively).

@AliShehab93
Copy link
Author

I don't think it is a normal behavior of ios since it is working with other apps. I may create a new branch from your package and debug this scenario in the native part to the flutter part and I will discuss with you if the problem is the same.

@chashkovdaniil
Copy link

I don't think it is a normal behavior of ios since it is working with other apps. I may create a new branch from your package and debug this scenario in the native part to the flutter part and I will discuss with you if the problem is the same.

Hi! Have you been able to solve this problem?

@AliShehab93
Copy link
Author

AliShehab93 commented Jul 26, 2022 via email

@chashkovdaniil
Copy link

Yes, but in flutter_sound package

@ryanheise
Copy link
Owner

I'd be interested to know what the logging reveals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants