androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.52k stars 364 forks source link

Pause the download and not cancel the notification #1374

Open AntonMishanin opened 3 months ago

AntonMishanin commented 3 months ago

I'm downloading video with DownloadManager and DownloadService. I can see download notification with progress. When I pause download via DownloadService.sendSetStopReason notification is cancel. I would like to resume download by click on notification button "resume" (like player play/pause) Please tell me how to pause the download and not cancel the notification?

P.S. 1: Yes, I can show my notification. But then the animation of canceling and adding a notification will be visible. I would like to interact with one notification (similar to the play/pause player) P.S. 2: As an idea, make one endless download and don't show a notification for it. In this case, if at least one download is active, the notification will be visible. But it’s not clear how to make sure that this download does not take up device resources/does not occupy a worker thread

marcbaechinger commented 3 months ago

Thanks for reporting. I added the 'enhancement' tag.

I don't think we come around to work on this any time soon though. So I can't tell you when we get the chance to look into this.