google / google/ExoPlayer

Update DownloadRequest metadata without transitioning download back to STATE_QUEUED

Open
#7,959 1 comment 1 reaction 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

Hello,

Is it possible to update DownloadRequest data (byte[]) after the first initialization?
I wanna store the bookmark and it will be updated after each playback.

I've tried to re-create a new DownloadRequest with all same parameters (except data who contains the new bookmark) but when I do that when my phone is offline, the state of the Download pass to STATE_QUEUED and I can't watch the video anymore.

Thanks for your help

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.