I have converted an HTML template to React js and now I am not able to play the video, have give the attribute autoPlay="true". Still its not working. Can anyone please help me with this?
Below is my video-player code:
return(
<div>
<video width="400" controls autoPlay="true">
<source src="mov_bbb.mp4" type="video/mp4"/>
<source src="mov_bbb.ogg" type="video/ogg"/>
Your browser does not support HTML video.
</video>
<p>
Video courtesy of
<a href="<network url of video>" target="_blank">Video is Playing</a>.
</p>
</div>
);
The player is opening but none of the controls are working nor the video is playing. Did I miss to add any package or tag>? Please let me know.