Flash не работает в IE8, внутри HTML5 видео тег - PullRequest
0 голосов
/ 26 марта 2012
<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). В течение нескольких дней возился с этим, наконец прибегая к помощи экспертов.

Спасибо.

1 Ответ

0 голосов
/ 17 июля 2012

Я не думаю, что файл .swf должен находиться внутри тега <video>.Я бы попробовал тег <object> с атрибутом type, установленным на "application/x-shockwave-flash".

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...