Update share_btn.py
Browse files- share_btn.py +2 -2
share_btn.py
CHANGED
@@ -14,7 +14,7 @@ share_js = """async () => {
|
|
14 |
const response = await fetch(UPLOAD_URL, {
|
15 |
method: 'POST',
|
16 |
headers: {
|
17 |
-
'Content-Type': video/mpeg,
|
18 |
'X-Requested-With': 'XMLHttpRequest',
|
19 |
},
|
20 |
body: file, /// <- File inherits from Blob
|
@@ -28,7 +28,7 @@ share_js = """async () => {
|
|
28 |
const res = await fetch(videoEL.src, { mode: 'no-cors'});
|
29 |
const blob = await res.blob();
|
30 |
//const videoId = Date.now() % 200;
|
31 |
-
const fileName = `talking-portrait-${
|
32 |
const videoBlob = new File([blob], fileName, { type: 'video/mpeg' });
|
33 |
|
34 |
console.log(videoBlob);
|
|
|
14 |
const response = await fetch(UPLOAD_URL, {
|
15 |
method: 'POST',
|
16 |
headers: {
|
17 |
+
'Content-Type': 'video/mpeg',
|
18 |
'X-Requested-With': 'XMLHttpRequest',
|
19 |
},
|
20 |
body: file, /// <- File inherits from Blob
|
|
|
28 |
const res = await fetch(videoEL.src, { mode: 'no-cors'});
|
29 |
const blob = await res.blob();
|
30 |
//const videoId = Date.now() % 200;
|
31 |
+
const fileName = `talking-portrait-${videoName}.mp4`;
|
32 |
const videoBlob = new File([blob], fileName, { type: 'video/mpeg' });
|
33 |
|
34 |
console.log(videoBlob);
|