Update share_btn.py
Browse files- share_btn.py +4 -3
share_btn.py
CHANGED
@@ -23,15 +23,16 @@ share_js = """async () => {
|
|
23 |
return url;
|
24 |
}
|
25 |
|
26 |
-
async function getOutputVideoFile(videoURL
|
27 |
|
28 |
-
fetch('
|
29 |
.then(response => response.blob())
|
30 |
.then(blob => {
|
31 |
// do something with the blob;
|
32 |
console.log(blob);
|
33 |
|
34 |
-
let videoBlob = URL.createObjectURL(blob)
|
|
|
35 |
return videoBlob;
|
36 |
});
|
37 |
|
|
|
23 |
return url;
|
24 |
}
|
25 |
|
26 |
+
async function getOutputVideoFile(videoURL){
|
27 |
|
28 |
+
fetch('videoURL, { mode: 'no-cors'})
|
29 |
.then(response => response.blob())
|
30 |
.then(blob => {
|
31 |
// do something with the blob;
|
32 |
console.log(blob);
|
33 |
|
34 |
+
let videoBlob = URL.createObjectURL(blob);
|
35 |
+
console.log(videoBlob);
|
36 |
return videoBlob;
|
37 |
});
|
38 |
|