IO-1165 Add video playback support.
This commit is contained in:
@@ -154,7 +154,6 @@ export function UploadProgress({
|
||||
//Sequentially await the proms.
|
||||
|
||||
for (var i = 0; i < data.length + 4; i = i + 4) {
|
||||
console.log("i :>> ", i);
|
||||
let proms = [];
|
||||
if (data[i]) {
|
||||
proms.push(CreateUploadProm(data[i]));
|
||||
@@ -168,9 +167,8 @@ export function UploadProgress({
|
||||
if (data[i + 3]) {
|
||||
proms.push(CreateUploadProm(data[i + 3]));
|
||||
}
|
||||
console.log("Proms Length", proms.length);
|
||||
|
||||
await Promise.all(proms);
|
||||
console.log("Await done.");
|
||||
}
|
||||
|
||||
if (deleteAfterUpload) {
|
||||
@@ -196,7 +194,6 @@ export function UploadProgress({
|
||||
const CreateUploadProm = async (p) => {
|
||||
let filename;
|
||||
filename = p.filename || p.uri.split("/").pop();
|
||||
console.log("Start upping.", p.id);
|
||||
|
||||
await handleUpload(
|
||||
{
|
||||
@@ -214,7 +211,7 @@ export function UploadProgress({
|
||||
photo: p,
|
||||
}
|
||||
);
|
||||
console.log("Done upping.", p.id);
|
||||
|
||||
//Set the state to mark that it's done.
|
||||
setProgress((progress) => ({
|
||||
...progress,
|
||||
|
||||
Reference in New Issue
Block a user