google / google/ExoPlayer

Downloads: add download failure reasons

Open
#5,914 10 comments 10 reactions 1 assignee Assigned to @marcbaechinger View on GitHub
enhancement
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### [REQUIRED] Use case description
User has ran out of free space on his/her device. He/she starts download and after several retries gets status update with "unknown" failure reason.

### Proposed solution
Add FAILURE_REASON_INSUFFICIENT_FREE_SPACE to Download.FailureReason IntDef.

### Alternatives considered
If aforementioned solution is hard to implement, could you at least add support for minimum storage requirement in bytes for the download to proceed. (This might be even harder as currently you store the combination of requirement flags in an Int and there is no way to store extra data)

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.