Change initial frame image of a video before it is played | XM Community
Skip to main content

Change initial frame image of a video before it is played

  • February 2, 2023
  • 2 replies
  • 573 views

Forum|alt.badge.img+2

Hi all,
I have a video inserted via "Insert Media" function on Rich Content Editor, in a Matrix Table question. The video is a Mp4 file uploaded to my library. I need to change the initial frame shown before the video it is played.
Is it possible to implement one of these two solutions:

  1. Select a specific second (e.g., sec 5) of the video and set this as the frame of the initial screen, before the video is played.

  2. Ensure the video shows a black (or any other color) image before it is played.

I get close to solution 2 by changing, in Rich Content Editor of the video, preload="auto" to preload="none". However, the initial box is smaller compared to the size of the video.
Thank you.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • February 2, 2023

Add a poster attribute to your

video
tag. For example:

Forum|alt.badge.img+2
  • Author
  • February 2, 2023

Thank you, Tom.
Unfortunately, once I had the poster="{url of a image to display}", the preview of the video becomes a smaller box compared to the size of the video, and the image associated to the URL does not get loaded.

Thanks a lot, I appreciate your help!