瀏覽代碼

Fix: Fail to open console with Firefox #4816 (#4838)

### What problem does this PR solve?

Fix: Fail to open console with Firefox #4816

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.0
balibabu 8 月之前
父節點
當前提交
fa5c7edab4
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      web/src/components/message-item/hooks.ts

+ 3
- 1
web/src/components/message-item/hooks.ts 查看文件

@@ -67,7 +67,9 @@ export const useSpeech = (content: string, audioBinary?: string) => {
setIsPlaying(false);
},
onChunkEnd: () => {},
mimeType: 'audio/mpeg',
mimeType: MediaSource.isTypeSupported('audio/mpeg')
? 'audio/mpeg'
: 'audio/mp4; codecs="mp4a.40.2"', // https://stackoverflow.com/questions/64079424/cannot-replay-mp3-in-firefox-using-mediasource-even-though-it-works-in-chrome
});
await player.current.init();
}, []);

Loading…
取消
儲存