We would like to add video's using direct mp4 links, that we would like to load using a custom attribute on the productpage gallery.
We know the possibility to display a video on a product gallery using YouTube and Vimeo, but we do not want to upload the video's first to YouTube or Vimeo.
Is there a way to create some custom code, to add a video to the gallery?
How can we achieve this?
1 Answer 1
Of course - there is a way to reach this goal.
I think the easiest way to implement it is use custom attribute.
The plan is like below:
- add custom attribute with upload field
- prepare logic to save file on your sever
- save path to file on server
- create plugin and inject your custom attribute to
mediaGallery - add support for mp4 in fotorama gallery
-
Thanks! Can you help with the last two parts? How to achieve that?JGeer– JGeer2023年11月18日 08:03:35 +00:00Commented Nov 18, 2023 at 8:03
-
You can check this about fotorama, seems interesting: github.com/megacarlossm/fotorama-mcsms/blob/master/README.md about creating plugin you will find a lot of information in googleK. Maliszewski– K. Maliszewski2023年11月18日 14:44:15 +00:00Commented Nov 18, 2023 at 14:44
Explore related questions
See similar questions with these tags.