Can';t在我的html页面中集成mp4视频

Can';t在我的html页面中集成mp4视频,html,Html,我想在我的html页面中集成一个视频: 我尝试了以下代码: <video controls="controls" width="400" height="222"> <source src="D:\videos\test2.mp4" type="video/mp4"> </video> 我也试过: <source src="file://D:/videos/test2.mp4" type="video/mp4">

我想在我的html页面中集成一个视频: 我尝试了以下代码:

<video controls="controls" width="400" height="222"> 
   <source src="D:\videos\test2.mp4" type="video/mp4">            
</video>
我也试过:

<source src="file://D:/videos/test2.mp4" type="video/mp4">  

但我得到了同样的东西

相反,当我尝试时:

<video controls="controls" width="400" height="200"> 
  <source src="http://www.nicolas-hoffmann.net/animations/Cavernae_Terragen2.mp4" type="video/mp4"> 
</video>

这里,视频是为我呈现的


视频路径有问题吗?

尝试将视频文件放在html页面的同一文件夹中。 然后创建一个相对路径,如:


/test2.mp4

D:\…
不是有效的URL。至少应该是
file://D:…
。我将url更改为src=“file://D:/videos/test2.mp4”,但它不起作用!
<video controls="controls" width="400" height="200"> 
  <source src="http://www.nicolas-hoffmann.net/animations/Cavernae_Terragen2.mp4" type="video/mp4"> 
</video>