-
Notifications
You must be signed in to change notification settings - Fork 767
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
fix(ios): New method allowing to disable automated memory release on memoryWarning (CB-11409) #101
base: master
Are you sure you want to change the base?
Conversation
…when a memoryWarning is received
What about this? Would it be possible to have a comment or an opinion? |
Hi, Just dropping by to say that the current behaviour (stopping the music as soon as a memory warning is received) poses an issue for us as well. Having the music stop is the very last thing we want to do. |
Please check if PullRequest #120 will resolve your issue. I think, the user should not be involved in this issue, especially as it only affects iOS. Releasing playing/recording media is unnecessary in the first place. |
Hey @tbrebant, seems there is a merge conflict now. Could you please take care of this? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard conflict now, will have to rebase and see if mergeable.
Possibly similar feature was merged in the meantime, so should be checked if still necessary.
The issue addressed in this PR was fixed by: #120 |
Thanks for the feedback @katzlbt. If I understand #120 correctly, that PR changed the way the memory pressure warning is handled to only drop non playing sounds. This PR would have added an option to disable the dropping completely - correct? There is no possible other need for the functionality contained in this PR? (Sorry if my question are a bit basic here, I am not super accustomed to this plugin and iOS dev in general) |
Yes your assessment is correct, and there is no other functionality contained in the PR. The problem addressed by this PR is already fixed. |
Platforms affected
iOS
What does this PR do?
It is adding a method allowing the user to disable (and re-enable) the automated resource releasing when a memory warning is received on iOS. Why? Because user may want to handle memory warnings by himself (such as releasing other less important resource first).
This method is static, on the class:
What testing has been done on this change?
Ran the integrated tests. Before doing any change (version 2.3.1-dev) the result was:
After the change the result is exactly the same:
All tests was made with an iPad2 on iOS8.4.
Checklist
About the last point: tests will come as soon as possible, meanwhile please have a look at the code and review it! Thank you.