google / google/ExoPlayer

Are there any current examples of playing audio in the background using a foreground service?

Open
#10,026 1 comment 1 reaction 1 assignee Claimed by @marcbaechinger View on GitHub
question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I would like to experiment with updating my offline audio player (https://github.com/EricTerrell/EBTMusicPlayer) to use ExoPlayer.

Are there any examples or articles about how to use ExoPlayer with a foreground service? Having an article that shows how to set up the foreground service, notifications, etc. would avoid a lot of wasted time and frustration.

A codelab on this topic would be ideal!

All I've found are videos and articles that are years old, and probably full of deprecations.

Thanks!

Eric Bergman-Terrell
www.ericbt.com

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.