Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何显示带有对象和嵌入标记的本地视频文件?_Html_Video_Embed_Object Tag - Fatal编程技术网

Html 如何显示带有对象和嵌入标记的本地视频文件?

Html 如何显示带有对象和嵌入标记的本地视频文件?,html,video,embed,object-tag,Html,Video,Embed,Object Tag,因此,我的视频文件位于C:\inetpub\wwwroot\Videos\Test\intro.wmv中。我只想在我的网页上本地运行视频 它必须在IE8/WinXP上运行。所以没有HTML5 这就是我到目前为止所做的: <object width="100%" height="100%" type="video/x-ms-asf" url="http://localhost/Videos/Test/intro.wmv" data="intro.wmv" classid="CLSID:6BF

因此,我的视频文件位于C:\inetpub\wwwroot\Videos\Test\intro.wmv中。我只想在我的网页上本地运行视频

它必须在IE8/WinXP上运行。所以没有HTML5

这就是我到目前为止所做的:

<object width="100%" height="100%"
type="video/x-ms-asf" url="http://localhost/Videos/Test/intro.wmv" data="intro.wmv"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="http://localhost/Videos/Test/intro.wmv">
<param name="filename" value="intro.wmv">
<param name="autostart" value="1">
<param name="uiMode" value="full" />
<param name="autosize" value="1">
<param name="playcount" value="1">
<embed type="application/x-mplayer2" src="http://localhost/Videos/Test/intro.wmv" width="100%" height="100%" autostart="true" showcontrols="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
</object>

尝试更简单的开始方式,如:

<object data="./Videos/Test/intro.wmv" type="video/x-ms-wmv"  width="100%" height="100%">
  <param name="src" value="./Videos/Test/intro.wmv">
  <param name="autoStart" value="1">
  alt : <a href="./Videos/Test/intro.wmv">My video name</a>
</object>

中高音:
还是HTML5

<video width="320" height="240" controls="controls">  
    <source src="./Videos/Test/intro.wmv" type="video//x-ms-wmv" />   
    <!-- <track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English"> -->     
    Nav doesn't support html5 video
</video> 

   
Nav不支持html5视频

将此文件另存为同一文件夹中的html文件,视频在该文件夹中,这在HTML5中,最好先给出相对路径,然后再给出绝对路径。

这至少有效

<object width="100%" height="100%"
type="video/x-ms-asf" url="/wiki/Videos/Test/intro.wmv" data="/wiki/Videos/Test/intro.wmv"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="/wiki/Videos/Test/intro.wmv">
<param name="filename" value="/wiki/Videos/Test/intro.wmv">
<param name="autostart" value="1">
<param name="uiMode" value="full" />
<param name="autosize" value="1">
<param name="playcount" value="1">
<embed type="application/x-mplayer2" src="/wiki/Videos/Test/intro.wmv" width="100%" height="100%" autostart="true" showcontrols="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
</object>


WMP显示但不播放。如果直接在浏览器中打开视频url会发生什么?它是否显示“另存为”对话框、打开WMP或显示错误页面?还可以尝试右键单击播放器,查看是否显示错误/错误代码(应该显示)。把它贴在你的问题上,有吗?发生了什么事?
<object width="100%" height="100%"
type="video/x-ms-asf" url="/wiki/Videos/Test/intro.wmv" data="/wiki/Videos/Test/intro.wmv"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="/wiki/Videos/Test/intro.wmv">
<param name="filename" value="/wiki/Videos/Test/intro.wmv">
<param name="autostart" value="1">
<param name="uiMode" value="full" />
<param name="autosize" value="1">
<param name="playcount" value="1">
<embed type="application/x-mplayer2" src="/wiki/Videos/Test/intro.wmv" width="100%" height="100%" autostart="true" showcontrols="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
</object>