audio_session icon indicating copy to clipboard operation
audio_session copied to clipboard

Interruption problem in IOS devices

Open AliShehab93 opened this issue 3 years ago • 10 comments

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?

AliShehab93 avatar Jun 06 '22 07:06 AliShehab93

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?

ryanheise avatar Jun 06 '22 08:06 ryanheise

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

AliShehab93 avatar Jun 06 '22 08:06 AliShehab93

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

ryanheise avatar Jun 06 '22 09:06 ryanheise

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.

AliShehab93 avatar Jun 06 '22 09:06 AliShehab93

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?

chashkovdaniil avatar Jul 26 '22 18:07 chashkovdaniil

Hello dear,

Actually I didn’t test it yet, and I don’t think so it os solved. Are you facing the same issue as mine?

On Tue, 26 Jul 2022 at 9:45 PM Даниил @.***> wrote:

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?

— Reply to this email directly, view it on GitHub https://github.com/ryanheise/audio_session/issues/62#issuecomment-1195853092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIAEM5GE7ZLYMTKNGAU2NLDVWAW3NANCNFSM5X6RWOLQ . You are receiving this because you authored the thread.Message ID: @.***>

AliShehab93 avatar Jul 26 '22 19:07 AliShehab93

Yes, but in flutter_sound package

chashkovdaniil avatar Jul 27 '22 08:07 chashkovdaniil

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

ryanheise avatar Jul 27 '22 08:07 ryanheise