1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-04-30 18:05:51 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
831af80f0b Fix video compression removing audio by adding audio bitrate configuration
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2025-10-23 23:16:56 +00:00
copilot-swe-agent[bot]
956376f059 Initial plan 2025-10-23 23:10:26 +00:00

View File

@@ -634,9 +634,9 @@ export function useUploader(options: {
bitrate: item.compressionLevel === 1 ? mediabunny.QUALITY_VERY_HIGH : item.compressionLevel === 2 ? mediabunny.QUALITY_MEDIUM : mediabunny.QUALITY_VERY_LOW,
},
audio: {
// Explicitly keep audio (don't discard) and copy it if possible
// without re-encoding to avoid WebCodecs limitations on iOS Safari
// Explicitly keep audio and set a reasonable bitrate to ensure it's included
discard: false,
bitrate: 128000, // 128 kbps audio bitrate
},
});