A user (bholst) reported that the built-in audio player in Discourse stops playing when scrolling past a certain number of replies (around the 11th reply). This issue, which affects uploaded MP3s rather than embedded players, appeared after a recent update and was particularly annoying for their audio-focused community. codinghorror noted that posts are typically unloaded as they scroll off to save resources. Falco explained that currently, the system only prevents post unloading (cloaking) for YouTube videos and polls, suggesting that listening for play/pause events is necessary to fix audio players. The reporter confirmed the bug is linked to the latest update after testing a fresh instance. In response, eviltrout shared a commit added to the core that watches for audio playback to prevent cloaking. He clarified that this fix is part of the core codebase, not a separate plugin. Depending on their branch (tests-passed or beta), the fix should be available immediately via the upgrade interface or in a future release.
As the title mentions, on my site, if there is a thread with audio uploaded, the built-in player will stop playing if you scroll beyond a certain number of replies. This is a new problem for us. It used to work fine.
I realize this may seem like a bit of a petty thing, but it’s actually extremely annoying given the nature of our community (audio recording/mixing forum).
To see an example of what is going on, just visit thread and start the audio on the top of the thread and then start going through the replies. At about the 11th reply down from the top, the audio will stop. Also, this is not an isolated problem. Happens on other topics, browsers, devices. As I mentioned, this was not a problem before (maybe the latest update a couple days ago?)
Audio from what source? YouTube? Posts get unloaded as they scroll off. I believe YT has a special exception for this that @eviltrout put in a while ago.
It appears that the problem is related to the most recent update. I installed another instance and restored a backup and didn’t experience the problem until I updated to the latest version.
If you are running the tests-passed branch which is currently the default, it should be available now in your /admin/upgrade interface. If you’re running our beta branch it will take a little longer, perhaps in early 2017.