fix(voice): improve duration detection for new waveform playback
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user