fix(voice): improve duration detection for new waveform playback
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-03-08 20:46:57 +03:00
parent 8092cb53c5
commit e59c60094f
3 changed files with 25 additions and 5 deletions

View File

@@ -64,10 +64,10 @@ function pickSupportedAudioMimeType(): string | undefined {
return undefined;
}
const candidates = [
"audio/ogg;codecs=opus",
"audio/mp4",
"audio/webm;codecs=opus",
"audio/webm",
"audio/mp4",
"audio/ogg;codecs=opus",
];
for (const mime of candidates) {
if (MediaRecorder.isTypeSupported(mime)) {