-
Notifications
You must be signed in to change notification settings - Fork 7
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
Control center and audio session interaction issue #276
Comments
I attempted to solve the issue as follows:
This sadly does not work. The only way I know of to make the system realize that audio is being heard again after temporarily switching to I also reproduced the issue by tweaking Apple audio session sample, which proves the issue is not related to our implementation. I should report this as a bug to Apple (iOS 16 beta exhibits the same behavior). In the meantime I quite don't know what to do. |
I reported the issue to Apple as FB11416789. Sample code is available as well. Here is the report I made: Description of the problemApplications might need to toggle Control center integration availability depends on audio session settings. The .default option is namely required for proper control center metadata and playback control integration. When using The issue affects recent iOS versions (tested with 15.6.1 and 16 beta 8). Step-by-step set of instructions to reproduce the problemI attached a sample project to this issue. This project implements a simple video playback experience with minimal working control center integration and can be used to reproduce the described issue as follows (you can also see these steps in the attached video):
It seems that the issue is that iOS incorrectly fails to not detect that "a main playback" user experience is occurring when switching from
Expected resultsAssuming proper control center integration has been implemented, switching audio session options from Actual resultsAssuming proper control center integration has been implemented, switching audio session options from |
When switching the audio session
AVAudioSessionCategoryOptionMixWithOthers
option on, control center integration is automatically disabled by the system. When switching it back to off the control center is not automatically refreshed until the user pauses and resumes playback, e.g.Issue type
Incorrect behavior
Environment information
Reproducibility
Always reproducible
Code sample
In
AdvancedPlayerViewController~ios.m
insert the following implementation to replace the existing one:Steps to reproduce
The text was updated successfully, but these errors were encountered: