- 🇮🇩Indonesia gausarts
Let's focus in there 🐛 Videos don't display in a view's lightbox Postponed: needs info . Thanks.
Good morning everyone, the problem is that the slickLightboxMedia function in the file slick-lightbox.load.min.js does not recognize the oembedUrl data and causes the video not to be mounted and that the tag it uses is an img.
Drupal core 9.2.13
Blazy: 8.x-2.13 with this path
https://www.drupal.org/files/issues/2022-07-15/3296139-gallery-regression-5.patch →
Slick: 8.x-2.6
Slick Lightbox: 8.x-1.5
Create a content type with a media field type image and local video
Create a view of that content type
In the view select format blazy grid
Add a field of type blazy multimedia
In the options of the blazy multimedia field, select the option "image to slick lightbox" in media switcher
I have modified the code of the file slick-lightbox.load.min.js and slick-lightbox.load.js
I have added a condition in buildOutMedia and I have added the video tag in the new function that is called if it is a video.
I've shared a patch that adds the changes I've made to slick-lightbox.load.js and slick-lightbox.load.min.js.
the result:
I guess there is a better solution, I hope it will help you to find a complete way if you find it necessary to fix this problem.
I hope I have explained myself.
Thank you very much and greetings.
Closed: duplicate
1.5
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Let's focus in there 🐛 Videos don't display in a view's lightbox Postponed: needs info . Thanks.