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
Video 在xhtml中添加可在所有平台上查看的视频_Video_Xhtml - Fatal编程技术网

Video 在xhtml中添加可在所有平台上查看的视频

Video 在xhtml中添加可在所有平台上查看的视频,video,xhtml,Video,Xhtml,我如何将视频添加到xhtml中,它从服务器提取视频内容,而不像youtube 这是否有效?或者我最好使用普通的html方法 <!-- First, try the applet --> <object src="http://www.example.com/applets/classes/TheEarth.class" srctype="application/x-java-applet"> <!-- Else, try the vide

我如何将视频添加到xhtml中,它从服务器提取视频内容,而不像youtube

这是否有效?或者我最好使用普通的html方法

<!-- First, try the applet -->
<object
    src="http://www.example.com/applets/classes/TheEarth.class"
    srctype="application/x-java-applet">
      <!-- Else, try the video -->
      <object
          src="TheEarth.mpeg"
          srctype="video/mpeg"
          xml:base="http://www.example.com/videos/">
            <!-- Else, try the image -->
            <object
                src="TheEarth.png"
                srctype="image/png"
                xml:base="http://www.example.com/images/">
                <!-- Else process the alternate text -->
                The <strong>Earth</strong> as seen from space.
            </object>
      </object>
</object>

从太空看地球。

另外,使其在所有平台(如andriod、ios、windows、chrome等)上运行的最佳解决方案是什么

属性srctype不存在,请尝试改用type。