forked from forks/ffprobe-wasm
www: fix loading frames when using file from example or url.
This commit is contained in:
@@ -121,9 +121,9 @@ export default {
|
|||||||
}
|
}
|
||||||
xhr.onload = (event) => {
|
xhr.onload = (event) => {
|
||||||
this.progress = 100;
|
this.progress = 100;
|
||||||
const file = new File([event.target.response], "file");
|
this.file = new File([event.target.response], "file");
|
||||||
this.size = file.size;
|
this.size = this.file.size;
|
||||||
this.$worker.postMessage([ 'get_file_info', file ]);
|
this.$worker.postMessage([ 'get_file_info', this.file ]);
|
||||||
setTimeout(() => { this.showProgress = false; }, 2000);
|
setTimeout(() => { this.showProgress = false; }, 2000);
|
||||||
}
|
}
|
||||||
xhr.open('GET', this.url, true);
|
xhr.open('GET', this.url, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user