Check if Exoplayer downloaded file is still available in storage

Viewed 65

I am downloading my HLS audio file using exoplayer and would like to know if file is downloaded. Exoplayer has given a way to check if file downloaded or not -

Download download = downloadManager.getDownloadIndex().getDownload(id);
return download != null && download.state != Download.STATE_FAILED;

It works fine in every cases except one of it. It detects if file is downloaded properly unless we manually go to the filemanager app and delete the downloaded files externally.

Is there a way to detect if the exoplayer downloaded file is still available in the storage. I have seen apps like Youtube which detects manually externally removal of exoplayer downloaded file.

0 Answers
Related