Skip to content

Help with HTML5 video on React #1408

Answered by sachinchoolur
harveryang asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @harveryang,

I found a few issues with your code

  1. a typo in the getItems function. Type should be video instead of vidoe
return items.map((item) => {
      return item.type == 'video' ? (
  1. You need to use double quotes in the video src JSON
  2. You need to include videoJs JavaScript and CSS files. It is vimoe js currently

Here is the working link - https://stackblitz.com/edit/lightgallery-react-update-slides-1euqhi?file=index.tsx,index.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@harveryang
Comment options

Answer selected by harveryang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants