u-wave / flutter

[WIP] üWave mobile app (Android)
https://android.u-wave.net
GNU General Public License v3.0
9 stars 1 forks source link

Background playback w/ Foreground Service #1

Open goto-bus-stop opened 5 years ago

goto-bus-stop commented 5 years ago

The things that the Service needs to do:

Ideally, the player should have a defined API so we can switch between NewPipe and Official™ YouTube™ at build time. Then the Official™ YouTube™ version could be published on the Play Store maybe. For SoundCloud we could use ExoPlayer, the HTTP API, and an API key.

goto-bus-stop commented 5 years ago

Some state should be maintained in the Java part for this to work, I think. chat history, users, and playback state, i think. Things like playlists and play history can be loaded again when the user re-enters the app.