biner88 / metronome

Efficient, accurate, cross-platform metronome; supports volume, BPM, and audio source settings.
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

background music #14

Open silverlona opened 2 weeks ago

silverlona commented 2 weeks ago

Hi, I use the metronome to mark the pace in a training app. However, I want background music and I can't get the metronome to work with for example spotify playing music at the same time. Is this possible or something that can be fixed in the next version?

I can off course write my own code for this but the metronome works great except for this issue described above! I don't see that it would be a negative thing to enable this feature. Thanks for a great package!

best regards

silverlona

biner88 commented 2 weeks ago

Can IOS and Android not play Spotify at the same time?

silverlona commented 2 weeks ago

exactly, Spotify stop when I start the app. if I comment out all the metronome code it works fine. I also use the flutter_tts package in this app and flutter_tts works fine with my app and Spotify.

silverlona commented 2 weeks ago

by the way, I only use IOS at this stage so I have not tried with Android yet!

biner88 commented 2 weeks ago

Add enableSession: false in init and try.

silverlona commented 2 weeks ago

ok, great, thanks! it works! I did see enableSession in the definition but I did not connect it to my issue! once again thanks for you super fast response! all the best /silverlona