简体   繁体   中英

Why am I getting this error display for my video in Chrome?

When I run this code in Chrome:

 <html> <head><title>form</title> </head> <body> <video width="100" height="100" controls> <source src="G:\\Users\\tanmay\\Documents\\Apowersoft\\ApowerREC\\20180923_112116.mp4" type=video\\mp4> </video> </body> </html>

the following display is seen:

As mentioned in the comments, your link format is wrong.

  • Add file:/// in front of your drive letter since not from web ( eg: is not http:// ).

  • Browsers use the Unix style / for slashes, not the Microsoft/Windows \\ style.

 <html> <head><title>form</title> </head> <body> <video width="100" height="100" controls> <source src="file:///G:/Users/tanmay/Documents/Apowersoft/ApowerREC/20180923_112116.mp4" type=video/mp4> </video> </body> </html>

Try to use above code.Hope this will help you...

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