【问题标题】:adding a variable into flash playback embeded video code将变量添加到 Flash 播放嵌入式视频代码中
【发布时间】:2012-12-19 02:11:56
【问题描述】:

它实际上适用于 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>

【问题讨论】:

    标签: php javascript html flash


    【解决方案1】:

    既然它看起来很难编码,为什么不试试 html5 视频标签?

    <video width="320" height="240" controls>
      <source src="monday.mp4" type="video/mp4">
    Your browser does not support the video tag.
    </video>
    

    【讨论】:

    • html5 不适用于所有浏览器版本或没有相对论新 adobe flash 插件的计算机
    猜你喜欢
    • 1970-01-01
    • 2011-11-01
    • 2016-03-24
    • 1970-01-01
    • 2012-08-22
    • 2011-05-31
    • 1970-01-01
    • 2013-04-08
    • 2016-10-30
    相关资源
    最近更新 更多