Help with HTML5 video on React #1408
-
Can someone help on how to properly load HTML5 video in react? and item tag like this However, when click on the thumbnail, it throws "Opps....failed to load the content" https://stackblitz.com/edit/lightgallery-react-update-slides-tagyh3?file=index.tsx,Hello.tsx BTW, I did the same test in v2.4.0 and it works fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @harveryang, I found a few issues with your code
return items.map((item) => {
return item.type == 'video' ? (
Here is the working link - https://stackblitz.com/edit/lightgallery-react-update-slides-1euqhi?file=index.tsx,index.html |
Beta Was this translation helpful? Give feedback.
Hey @harveryang,
I found a few issues with your code
getItems
function. Type should bevideo
instead ofvidoe
src
JSONHere is the working link - https://stackblitz.com/edit/lightgallery-react-update-slides-1euqhi?file=index.tsx,index.html