element.style { } object-fit: contain; }

The Code is from Chapter 2-1 of Silvia Pfeiffer's HTML5 Video book

File Name: 101_Pfeiffer_Vid_Examp2-1.html

http://html5videoguide.net/DefinitiveGuide/code_c2_1_mpeg.html is what appears when this example is accessed. This link is reproduced below:


gives display

Note that there is a right side panel which lists some styles in the Styles category list

Shows the examples of all chapters.


I shall try these things again, and rely on W3C examples.




Try this instead:   Play is here     < this does not play either.

Note clicking on folder entry of mp4 and mpeg versions plays video.

I tried almost everything suggested on the internet. I still cannot play video in HTML5 in Chrome browser, although audio plays proerly. I even deleted all time browsing history.

I tried to use IE on my computer. (I do not know which version it is.) I launched IE and typed into the address line:

http://localhost/!HTML_Prac/101_Pfeiffer_Vid_Examp2-1.html

and it brought up video immediately.