2012-03-26 99 views
0
<video controls="controls" poster="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.jpg" width="854" height="480" onclick="if(/Android/.test(navigator.userAgent))this.play();" autoplay> 
      <source src="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.mp4" type="video/mp4" /> 
      <source src="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.webm" type="video/webm" /> 
      <source src="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.ogv" type="video/ogg" /> 
      <object type="application/x-shockwave-flash" data="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.swf" width="854" height="480" style="position:relative;"> 
       <param name="movie" value="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.swf" /> 
       <param name="allowFullScreen" value="true" /> 
       <param name="flashVars" value="autoplay=true&amp;controls=true&amp;loop=true&amp;src=General_Ledger_Demo.mp4" /> 
       <embed src="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.swf" width="854" height="480" style="position:relative;" flashVars="autoplay=true&amp;controls=true&amp;loop=true&amp;poster=<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.jpg&amp;src=General_Ledger_Demo.mp4" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_en" /> 
       <img alt="insight-commercial" src="<?php echo get_template_directory_uri(); ?>/library/video/General_Ledger_Demo.jpg" style="position:absolute;left:0;" width="854" height="480" title="Video playback is not supported by your browser" /> 
      </object> 
      </video> 

適用於IE9,Firefox,Safari甚至Android平板電腦。但是,IE8產生一個空白屏幕(回落到閃光燈)。文件路徑是正確的,它不是一個權限問題(全部是755)。過了好幾天,終於訴諸專家。Flash在IE8中無法工作,在HTML5視頻內部Tag

謝謝。

+0

實際網址:oracle.insightsoftware.com/product/general-ledger-demo Nate 2012-03-26 14:54:08

回答

0

我不認爲.swf文件應該在<video>標記內。我會嘗試一個<object>標記,type屬性設置爲"application/x-shockwave-flash"