简体   繁体   中英

Video tag doesn't work in html5

<video width=200 controls>
     <source src="../../../Content/111.mp4" type="video/mp4">
</video>

it doesn't work. Path is correct. What is this?? Result is white window with play button.

The html5 code below works for me in every browser except Chrome. Can you test in other browsers. Are you able to add another video in another format type? See this stack overflow question for more info .

<video width="200" controls>
 <source src="yyy.mp4" type="video/mp4" />
 </video>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM