iPhone、iPadでFlashの代替動画を表示
iPhone、iPadでFlashの代替動画を表示する
<!-- 動画 -->
<div id="movie">
<object id="Edamame" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="335" height="251">
<param name="movie" value="flash/edamame.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/edamame.swf" width="335" height="251">
<!-- 動画 for i -->
<script type="text/javascript">
var i;
if (navigator.userAgent.indexOf('iPhone') != -1) {
i = "yes";
} else if (navigator.userAgent.indexOf('iPad') != -1) {
i = "yes";
}
if (i == "yes") {
document.write("\
<video width=335 height=251 src=\"flash/edamame.mp4\" controls autobuffer autoplay loop>\
</video>\
");
document.close();
}
</script>
<!-- 動画 for i 終 -->
</object>
<!--<![endif]-->
</object>
</div>
<!-- 動画 終 -->