switch meta tag to mp4
This commit is contained in:
parent
3efb879cdf
commit
08bddb3165
4 changed files with 5 additions and 5 deletions
|
|
@ -90,7 +90,7 @@ function SpotPlayerHeader({
|
|||
const onMenuClick = async ({ key }: { key: string }) => {
|
||||
if (key === '1') {
|
||||
const { url } = await spotStore.getVideo(spotStore.currentSpot!.spotId);
|
||||
await downloadFile(url, `${spotStore.currentSpot!.title}.webm`);
|
||||
await downloadFile(url, `${spotStore.currentSpot!.title}.mp4`);
|
||||
} else if (key === '2') {
|
||||
spotStore.deleteSpot([spotStore.currentSpot!.spotId]).then(() => {
|
||||
history.push(spotsList());
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ function SpotListItem({
|
|||
return setIsEdit(true);
|
||||
case 'download':
|
||||
const { url } = await onVideo(spot.spotId);
|
||||
await downloadFile(url, `${spot.title}.webm`);
|
||||
await downloadFile(url, `${spot.title}.mp4`);
|
||||
return;
|
||||
case 'copy':
|
||||
copy(
|
||||
|
|
|
|||
|
|
@ -888,7 +888,7 @@ export default defineBackground(() => {
|
|||
const vPromise = fetch(videoURL, {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "video/webm",
|
||||
"Content-Type": "video/mp4",
|
||||
},
|
||||
body: blob,
|
||||
});
|
||||
|
|
@ -1030,7 +1030,7 @@ export default defineBackground(() => {
|
|||
}
|
||||
}
|
||||
|
||||
function base64ToBlob(base64: string, mimeType = "video/webm") {
|
||||
function base64ToBlob(base64: string, mimeType = "video/mp4") {
|
||||
const binaryString = atob(base64.split(",")[1]);
|
||||
const byteNumbers = new Array(binaryString.length);
|
||||
for (let i = 0; i < binaryString.length; i++) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const base64ToBlob = (base64: string) => {
|
|||
for (let i = 0; i < byteString.length; i++) {
|
||||
ia[i] = byteString.charCodeAt(i);
|
||||
}
|
||||
return new Blob([ab], { type: "video/webm" });
|
||||
return new Blob([ab], { type: "video/mp4" });
|
||||
};
|
||||
|
||||
function SavingControls({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue