0

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?

asked Nov 17, 2023 at 14:34

1 Answer 1

0

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
answered Nov 17, 2023 at 22:25
2
  • Thanks! Can you help with the last two parts? How to achieve that? Commented 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 google Commented Nov 18, 2023 at 14:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.