Skip to content

ListeningWindow: fail resume when audio session activation fails - #628

Open
toufiqfarhan0 wants to merge 1 commit into
AssemblyAI:mainfrom
toufiqfarhan0:fix/ios-resume-activation-guard
Open

toufiqfarhan0 wants to merge 1 commit into
AssemblyAI:mainfrom
toufiqfarhan0:fix/ios-resume-activation-guard

Conversation

@toufiqfarhan0

Copy link
Copy Markdown
Contributor

Fixes #627

Summary

  • Factor takeActivationFailure() in ListeningWindow+Effects and check it in tryResume(_:mayStart:) right after activateSession(), emitting .resumeFailed(generation, .micBusy) instead of resuming an unactivated session.
  • Add configurable activation failure to FakeAudioSession and test background resume failure plus recovery on the next open() in ListeningWindowTests+BackgroundResume.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

ListeningWindow+Effects.tryResume ignores activationFailed and resumes parked PiP windows with an inactive audio session

1 participant