JJMeliodax
JJMeliodax

Reputation: 31

Does not display the image as a preview of the HTML video

I have inserted in my video tag the code to show the preview with an image but this is not shown and I cannot understand why.

This is the code:

<video preload="none" width="100%" height="100%" autobuffer="true" controls="true" poster="mypath">
    <source src="mypath" type="video/mp4">
</video>

This is what appears to me inside mozila firefox:

enter image description here

I also tried on google chrome and the problem remains the same, what could be the problem?

Upvotes: 0

Views: 1347

Answers (1)

Kosha Sanghvi
Kosha Sanghvi

Reputation: 144

Try this code and also working in Firefox:

 <video  width="100%" height="100%" autobuffer="true" controls="true" poster="https://www.w3schools.com/images/picture.jpg">
       <source src="mypath" type="video/mp4">
 </video>

Upvotes: 1

Related Questions