Skip to content
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

Audio from other app is not returning to continue playing after sound from plugin finish playing #392

Open
3 tasks done
hvma411 opened this issue Jan 11, 2024 · 5 comments

Comments

@hvma411
Copy link

hvma411 commented Jan 11, 2024

Bug Report

Problem

If some other app is playing sound in background, for example if you listen music on Spotify, and then if you use other app with cordova-plugin-media which will play some sound then it stops music from Spotify and other apps. After sound is played Spotify is not comming back to playing.

What is expected to happen?

After plugin finish playing sound other apps from background which were playing music/other sounds should start playing again from moment whene plugin stoped it.

What does actually happen?

When plugin finish playing music/other sounds from other apps are not coming back to playing

Information

Command or Code

Just play some sound using this plugin while playing music on Spotify or other music apps

Environment, Platform, Device

Android and iOS

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
@RonnySchleicher
Copy link

I have exactly the same problem. When will there be a reaction to the issue?

@hvma411
Copy link
Author

hvma411 commented Jan 29, 2024

@RonnySchleicher if you use capacitor I suggest you to use Cap-go/native-audio.

@RonnySchleicher
Copy link

@hvma411 I'm using Cordova. But I'm trying to use this solution.

@momikus
Copy link

momikus commented Mar 11, 2024

This is not fixed for ages. I hope it is fixed soon.

@gliffen
Copy link

gliffen commented May 9, 2024

I too would love to see a solution for this. Our app has various timers in it that play a sound when segments are completed. Would be great if the user's music could return after the timer plays it's sound.

I did find this plugin that I will try as an option when I go through our next dev cycle but if anyone else needs a more urgent fix, please let me know if this work for your use case. https://github.com/talisman-games/cordova-plugin-ui-sounds

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

No branches or pull requests

4 participants