Flashing video preview during editing

AI-generated summary

A user, dpiker, reported an issue with Flashing video preview during editing in Discourse. When typing text above or below an embedded mp4 video in the preview pane, the video flashes on and off with each keypress, causing distraction. dpiker provided a video recording of the issue as requested by osioke. nbianca suggested enabling the experimental site setting “enable diffhtml preview” to resolve the issue, as it makes the composer preview smarter and prevents restarting animations.

Hi Discourse team,

We’ve been using Discourse for several years, and generally I really like it, thanks!
One issue though that has been bugging me for a while-

I often include mp4 videos in my posts. The preview of the video shows up in the preview pane correctly, but if I then continue to type more text above or below it before hitting reply, the image flashes off and on with every single keypress. It doesn’t make it completely unusable, but it does give me a bit of a headache to try and type a long reply with this S :camera_flash: T :camera_flash: R :camera_flash: O :camera_flash: B :camera_flash: E effect going on!
I’m using Chrome in case that’s relevant. I didn’t test in other browsers. I can capture a video of it if you can’t reproduce it.

Thanks,
Daniel

5 Likes

Yes please, a video recording will be helpful.

1 Like

Hi @osioke,
Here’s a recording:
https://vimeo.com/468933386/3d0fe7a1df
I realise I can hide the preview pane while editing, so it’s not really that big of a deal, but if there is any easy fix to stop this it would be nice.

5 Likes

I implemented an experimental site setting “enable diffhtml preview” (default off) which makes the composer preview a bit smarter and does not restart animations. Enabling this setting should fix your problem.

4 Likes