You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While recording, the phone rang, prompting an AudioPlayerError: pausePlaying() called during invalid state: 2, but the recording was not affected, which is normal. I reviewed the code and believe that the pauseAllLostFocus method should not handle the audio class during recording.
What is expected to happen?
What does actually happen?
Information
Command or Code
public void pauseAllLostFocus() { for (AudioPlayer audio : this.players.values()) { if (audio.getState() == AudioPlayer.STATE.MEDIA_RUNNING.ordinal()) { this.pausedForFocus.add(audio); audio.pausePlaying(); } } }
Environment, Platform, Device
Version information
Checklist
I searched for existing GitHub issues
I updated all Cordova tooling to most recent version
I included all the necessary information above
The text was updated successfully, but these errors were encountered:
Bug Report
Problem
While recording, the phone rang, prompting an AudioPlayerError: pausePlaying() called during invalid state: 2, but the recording was not affected, which is normal. I reviewed the code and believe that the pauseAllLostFocus method should not handle the audio class during recording.
What is expected to happen?
What does actually happen?
Information
Command or Code
public void pauseAllLostFocus() { for (AudioPlayer audio : this.players.values()) { if (audio.getState() == AudioPlayer.STATE.MEDIA_RUNNING.ordinal()) { this.pausedForFocus.add(audio); audio.pausePlaying(); } } }
Environment, Platform, Device
Version information
Checklist
The text was updated successfully, but these errors were encountered: