Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,

I am try this below code Not Play video so how to play video in html(google chrome,IE,Mozila Fire Fox)

HTML
<!DOCTYPE html>
 <html> 
<head>
 <title>HTML Video Tag Example</title>
 </head> 
<body> 
<video width="320" height="240" controls="controls" autoplay="autoplay">
 <source src="D:\DONOTDELETE\HIMT_2Min_Final.mp4" type="video/mp4"> <object data="" width="320" height="240"> 
<embed width="320" height="240" src="D:\DONOTDELETE\HIMT_2Min_Final.mp4"> </object> </video>
 </body> 
</html>
Posted
Updated 20-Nov-15 22:07pm
v2

I think your issue is related to the file path. I just changed the url with the url given in w3c examaple[^], checked your code - and it worked.
So check the file path of the video. And you don't have to use <object></object> & <embed></embed> within the <video></video>, only <source></source> would do the job for you.

-KR
 
Share this answer
 
Quote:
I think your issue is related to the file path. I just changed the url with the url given in for example checked your code - and it worked.


 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900