我将我的 Discourse 实例用作学习管理系统 (LMS),我的用户已经注意到一个故障。
我为每篇教育文章创建一个新主题,并将文章的 mp3 朗读上传到主题中(如下图所示)。问题是,当用户在此文本上使用 AI 助手,然后单击 AI 助手模态框外部将其关闭时,音频会停止播放并返回到开头。因此,用户必须向上滚动,重新找到他们在音频中的位置,然后向下滚动回到他们在文本中的位置,等等。这严重影响了用户体验
截图:
2 个赞
sam
(Sam Saffron)
2025 年5 月 22 日 01:36
5
非常感谢你提出这个问题以及提供的详细重现步骤。
@keegan 正在查看,可能已经找到根本原因。
有趣的是,@saquetim 现在正在重新处理帖子流,所以我们需要考虑几个渲染系统来处理类似的错误。
请耐心等待!
5 个赞
keegan
(Keegan George)
2025 年5 月 26 日 17:27
9
您好 @MachineScholar ,
感谢您发现此 bug。此问题现已通过以下修复解决:
main ← fix-audio-break
opened 02:43PM - 26 May 25 UTC
## :mag: Overview
When you have a post with audio being played and you open and… close the AI post helper menu, it re-renders the entire post DOM, causing the audio to be interrupted and stop playing.
The reason for this is because we highlight the selected text when opening the AI post helper menu and we replace the entire post back with the original post HTML when closing the menu. This fix ensures that we do not re-render the entire post DOM and instead only remove the highlighted section that was added.
## 🔗 Context
https://meta.discourse.org/t/ai-helper-interrupting-uploaded-mp3-audio-stream/366817?u=keegan
## 📹 Screen Recording
https://github.com/user-attachments/assets/d028ff5a-8734-46e8-bca4-54f803d3f050
_Screen recording doesn't have audio, but you can see the progress bar for the audio continues playing and the showing/hiding of the highlighted text works correctly_
更新 Discourse AI 后,如果您仍然遇到任何问题,请告知我。
3 个赞