Fix playing videos that have been previously downloaded but then deleted/moved
This commit is contained in:
parent
e55ba15613
commit
1b9d23279c
1 changed files with 5 additions and 2 deletions
|
@ -223,8 +223,11 @@ export function doPurchaseUri(uri) {
|
||||||
// the blobs. Or perhaps there's another way to see if a file was already
|
// the blobs. Or perhaps there's another way to see if a file was already
|
||||||
// purchased?
|
// purchased?
|
||||||
|
|
||||||
// we already fully downloaded the file
|
// we already fully downloaded the file. If completed is true but
|
||||||
if (fileInfo && fileInfo.completed) {
|
// writtenBytes is false then we downloaded it before but deleted it again,
|
||||||
|
// which means it needs to be reconstructed from the blobs by dispatching
|
||||||
|
// doLoadVideo.
|
||||||
|
if (fileInfo && fileInfo.completed && !!fileInfo.writtenBytes) {
|
||||||
return Promise.resolve()
|
return Promise.resolve()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue