0

它实际上适用于 Chrome 和 Safari,但是 ie8 和 firefox 无法识别该$video变量。是否有不同的语法使它们更有可能与这些浏览器一起使用。

<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject/swfobject.js"></script>
    <script type="text/javascript">

            swfobject.registerObject("myFlashContent", "9.0.0");

    </script>
 </head>
   <?php $video="monday.mp4"; ?>
<body>
   <div>
<object width="600" height="409">
<param name="movie"value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf">              
</param>
<param name="flashvars" value="src=http%3A%2F%2F81.107.65.42%2Fmonday.mp4"></param>
 <param name="allowFullScreen" value="true"></param><param name="allowscriptaccess"  
              value="always"></param> 
  <embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"    
              type="application/x-shockwave-flash" allowscriptaccess="always"
              allowfullscreen="true"    
              width="600" height="409" flashvars="src=http%3A%2F%2Fmydomain%2F"
              <?php $video; ?></embed></object>
     </div>
  </body>
</html>
4

1 回答 1

0

既然它看起来是硬编码的,为什么不试试 html5 视频标签呢?

<video width="320" height="240" controls>
  <source src="monday.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
于 2012-12-19T02:24:01.623 回答