Closed coolveer closed 3 years ago
<video autoPlay={true} loop={true} playsInline={true}> <source src="/videos/1608229455-star-wars.mp4" type="video/mp4" /> </video>
this code adds the video but the video was not playing in crome
the solution to this is that you just have to add muted to the video code just like this
<video autoPlay={true} loop={true} playsInline={true} muted> <source src="/videos/1608229455-star-wars.mp4" type="video/mp4" /> </video>
just a little help from my side if someone gets stuck
Can you please explain why 'muted' worked?
I would also like to know, why did 'muted' work?
Chrome does not allow videos to autoplay if it's muted.
this code adds the video but the video was not playing in crome
the solution to this is that you just have to add muted to the video code just like this
just a little help from my side if someone gets stuck