fffiloni commited on
Commit
25ec2ad
1 Parent(s): d891024

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +3 -3
share_btn.py CHANGED
@@ -23,7 +23,7 @@ share_js = """async () => {
23
  return url;
24
  }
25
 
26
- async function getOutputVideoFile(videoEL){
27
  const res = await fetch(videoEL.src);
28
  const blob = await res.blob();
29
  const videoId = Date.now() % 200;
@@ -49,9 +49,9 @@ share_js = """async () => {
49
  shareIconEl.style.display = 'none';
50
  loadingIconEl.style.removeProperty('display');
51
 
52
- const inputFile = await getInputFile(inputVidEl);
53
  const urlInputVid = await uploadFile(inputFile);
54
- const videoOutFile = await getInputFile(outputVideo);
55
  const dataOutputVid = await uploadFile(videoOutFile);
56
 
57
  const descriptionMd = `
 
23
  return url;
24
  }
25
 
26
+ async function getVideoBlobFile(videoEL){
27
  const res = await fetch(videoEL.src);
28
  const blob = await res.blob();
29
  const videoId = Date.now() % 200;
 
49
  shareIconEl.style.display = 'none';
50
  loadingIconEl.style.removeProperty('display');
51
 
52
+ const inputFile = await getVideoBlobFile(inputVidEl);
53
  const urlInputVid = await uploadFile(inputFile);
54
+ const videoOutFile = await getVideoBlobFile(outputVideo);
55
  const dataOutputVid = await uploadFile(videoOutFile);
56
 
57
  const descriptionMd = `