Youtube previews miss play button and inline playing

AI-generated summary

Youtube Previews Miss Play Button and Inline Playing: After updating to Discourse version 3.1.0.beta4, embedded Youtube videos stopped playing in old messages, instead displaying a clickable image. A manual Rebuild HTML on each post fixes the issue. However, for a mass rebuild, the rebake-all-posts-matching-a-pattern method can be used. Canapin warns against rebaking too quickly, as excessive Youtube requests can temporarily blacklist the server’s IP and break Youtube embeds.

Hi all,
After installing version 3.1.0.beta4 (beta5 is now installed), embedded Youtube videos stopped playing in old messages, for example

Keith Rowe
https://youtu.be/JV1zeXnl52Y

This is how it looks. Clicking on the picture will take you to Youtube.

To fix this you need to do a Rebuild HTML in the post, after that everything works fine.

Tell me how to make a mass Rebuild HTML so that embedded Youtube videos can be played again in the forum without switching to Youtube.

Thank you!

A little warning about that. If you target only posts containing Youtube videos, and don’t set a timer between each rebake, it will make a lot of Youtube requests and your server’s IP might be temporarily blacklisted, leading to broken Youtube embeds.

It happened to me. See: