Skip to content

FIX: Show video poster image for Mux video on mobile - #102

Closed
schiller wants to merge 1 commit into
discourse:mainfrom
schiller:fix-mobile-video-posters
Closed

schiller wants to merge 1 commit into
discourse:mainfrom
schiller:fix-mobile-video-posters

Conversation

@schiller

Copy link
Copy Markdown
Contributor

Videos rendered by the plugin do not have an explicit poster image.
On mobile, this can leave the player without a preview before playback.

This change sets the poster to a Mux-generated thumbnail at the
one-second mark and adds the playsinline attribute to allow inline
playback on supported mobile browsers.

Validation:

  • Applied the change to a self-hosted Discourse installation.
  • Recompiled assets and restarted the container.
  • Confirmed that the video preview now appears on mobile.

Automated tests were not run.

@ZogStriP

Copy link
Copy Markdown
Member

thanks @schiller - while reviewing your pr and adding more code, i decided to "fix" a few more things as you can see in the stack #103

@ZogStriP ZogStriP closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants