Skip to content

Background playback w/ Foreground Service #1

Description

@goto-bus-stop

The things that the Service needs to do:

  • Maintain websocket connection
    • Reconnect on network changes
    • Reconnect on other network failure
  • Handle advance websocket messages
    • Update the player
    • Update the notification
  • Cache websocket messages so they can be passed to Dart when the app is foregrounded
  • Future: handle chat websocket messages only for mention notifications
  • Handle upvoting and downvoting through the notification box
  • Handle disconnecting through the notification box
    • This should quit the player and the service
    • The app should detect, when foregrounded, that it's no longer connected and navigate to the server list page

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions