switch meta tag to mp4

This commit is contained in:
nick-delirium 2025-02-17 09:25:51 +01:00
parent 01fe704f67
commit 4f861c2710
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
4 changed files with 5 additions and 5 deletions

View file

@ -85,7 +85,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());

View file

@ -79,7 +79,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(

View file

@ -896,7 +896,7 @@ export default defineBackground(() => {
const vPromise = fetch(videoURL, {
method: "PUT",
headers: {
"Content-Type": "video/webm",
"Content-Type": "video/mp4",
},
body: blob,
});
@ -1035,7 +1035,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++) {

View file

@ -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({