fix(android): Avoid playing after gaining focus in paused state#1857
Conversation
f972094 to
bfe14bd
Compare
|
@karthik986arre can you test, if this branch is fixing your issue? |
spydon
left a comment
There was a problem hiding this comment.
Nice, someone spoke about this on discord
|
@Gustl22 it hasn't solve the problem, we have to reopen the related issues |
|
@karthik986arre Thank you for testing. If you are sure, can you give me the exact steps to reproduce your issue, as I have followed the steps in the original one to solve it. |
|
Steps to reproduce:
Interruption case:
The issue is when intently pause and play the same audio! @Gustl22 |
|
@Gustl22 any followup on this, please update if you got the issue! |
|
@karthik986arre Did you make sure to also override the |
Screenrecorder-2025-01-02-12-18-53-979.mp4I have done with override dependency in example project and causing same issues which mentioned above, please check this video FYI @Gustl22 |
|
Hey @Gustl22, have you checked the above scenarios? |
|
@karthik986arre I had no time to reproduce your scenario once again yet.
I miss the step, where you receive the phone call in your video. (I tested it with the emulator, where one can also simulate phone calls). So I'm not sure, what your video tries to show, or what is wrong with it. Edit: now I get it: the position stream is not updating after pause & play right(?) |
|
@Gustl22 yeah the position and duration stream are not updating when pause and playback the same audio. |
|
Not sure if this is directly linked but I'm experiencing issues with audio focus during calls #1867 |
|
@karthik986arre can you have a look, if the issue is resolved in the current main branch? |
|
Thanks a lot @Gustl22, it's working fine now! |

Description
Avoid playing when the app gains audio focus, e.g. after a phone call.
Also pause the audio when losing focus, or only pause it temporarly if losing transient focus.
Checklist
fix:,feat:,refactor:,docs:,chore:,test:,ci:etc).///, where necessary.Breaking Change
Related Issues
closes #1853
closes #1854
closes #1688