nicorac / bcr-gui

BCR-GUI is a companion app for the great BCR (Basic Call Recorder) Android application and other supported ROMs with embedded call recorders.
https://coolsoft.altervista.org
GNU General Public License v3.0
146 stars 7 forks source link

Playback stops when screen gets dark #20

Closed R44D44 closed 9 months ago

R44D44 commented 11 months ago

headline says it all. i wish bcr-gui would continue playback. thanks otherwise for this nice+simple gui

ZapperDJ commented 10 months ago

I'm experiencing the same issue here

nicorac commented 9 months ago

There's actually no easy (and stable) way for a webapp to keep a task running in background while the system is paused (screen off). I've tried to force the NativeAudio plugin to ignore "sleep" events and it works, but after 15/20s (it depends on ROM power saving features) the application is forcibly suspended and audio killed).

A working implementation requires the creation of a native background service and/or use system multimedia services, which is actually an huge task (haven't find any Capacitor plugin doing this ATM... 🙄).

Anyway I've found a workaround that I think could be acceptable: ask the system to stay awake.

It works like this:

Just released v0.0.22 with this feature; feel free to reopen this issue if there's any issue with it.

R44D44 commented 9 months ago

Version 0.0.22 does not show the apk

nicorac commented 9 months ago

Sorry, fixed now 😉