All things Shopify and commerce
in the below image I have a video that does show an images of the item, the video plays but I want a picture of the item to show before you play the video. Anyone know how to fix the code to show an image before someone clicks on the video.
Here is the code
<div style="max-width: 100%; text-align: center;">
<video poster="https://video.aliexpress-media.com/play/u/ae_sg_item/2214247502705/p/1/e/6/t/10301/1100151854610.mp4..." controls="controls" width="100%" style="max-width: 100%; height: auto; object-fit: contain;" muted="" playsinline>
<source type="video/mp4" src="https://video.aliexpress-media.com/play/u/ae_sg_item/2214247502705/p/1/e/6/t/10301/1100151854610.mp4..."></video>
</div>
Solved! Go to the solution
This is an accepted solution.
Yup, you'll want to ensure the assets as well as the elements are sized the same.
Hey There,
I think you want to to change your poster to an image not a video in your video tag.
poster=someImage.png
Also it would be helpful if you could download the video and images and upload into Shopify. Then use those files from Shopify instead of an external source like video.aliexpress... It'll help your site performance 🙂 Here's a link for uploading content to save you a google.
Best of Luck!
the image and video come out 2 different sizes
This is an accepted solution.
Yup, you'll want to ensure the assets as well as the elements are sized the same.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024